-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1076 from slaclab/pre-release
Release Candidate v2.42.0
- Loading branch information
Showing
336 changed files
with
6,548 additions
and
2,124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,11 @@ | |
*.db | ||
*.log | ||
*.vho | ||
*.xml | ||
xvcSrv | ||
doxygen/ | ||
ghdl/ | ||
ghdl-build/ | ||
ruckus/ | ||
build/ | ||
sim_build/ | ||
.coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,105 +1,66 @@ | ||
# Makefile automatically generated by ghdl | ||
# Version: GHDL 0.34-dev (2017-03-01) [Dunoon edition] - mcode code generator | ||
# Command used to generate this makefile: | ||
# ghdl --gen-makefile -v -P/afs/slac/g/reseng/vol20/ghdl/lib/ghdl/vendors/xilinx-vivado/ --workdir=work --ieee=synopsys -fexplicit -frelaxed-rules AxiLiteCrossbar | ||
|
||
GHDL=ghdl | ||
GHDL_WORKDIR=ghdl | ||
GHDLFLAGS= --workdir=${GHDL_WORKDIR} --work=surf --ieee=synopsys -fexplicit -frelaxed-rules --warn-no-library | ||
GHDLRUNFLAGS= | ||
|
||
PATHS = $(shell find -type f -name '*.vhd') | ||
|
||
# Exclude all the VHDL2008 files: /usr/bin/ghdl-mcode:warning: library synopsys does not exists for v08 | ||
# Exclude all exempt modules with same entity name | ||
EXCLUDE = $(shell find ./ghdl-build/ -type f -name '*.vhd') \ | ||
$(shell find ./dsp/logic/ -type f -name '*.vhd') \ | ||
$(shell find . -type f -name '*Ad9249Deserializer.vhd') \ | ||
$(shell find . -type f -name '*Ad9249ReadoutGroup.vhd') \ | ||
$(shell find . -type f -name '*GigEthGthUltraScale.vhd') \ | ||
$(shell find . -type f -name '*GigEthGthUltraScaleWrapper.vhd') \ | ||
$(shell find . -type f -name '*TenGigEthGthUltraScale.vhd') \ | ||
$(shell find . -type f -name '*TenGigEthGthUltraScaleClk.vhd') \ | ||
$(shell find . -type f -name '*TenGigEthGthUltraScaleRst.vhd') \ | ||
$(shell find . -type f -name '*TenGigEthGthUltraScaleWrapper.vhd') \ | ||
$(shell find . -type f -name '*XauiGthUltraScale.vhd') \ | ||
$(shell find . -type f -name '*XauiGthUltraScaleWrapper.vhd') \ | ||
$(shell find . -type f -name '*ClinkDataClk.vhd') \ | ||
$(shell find . -type f -name '*ClinkDataShift.vhd') \ | ||
$(shell find . -type f -name '*Pgp2bGthUltra.vhd') \ | ||
$(shell find . -type f -name '*PgpGthCoreWrapper.vhd') \ | ||
$(shell find . -type f -name '*Pgp3GthUs.vhd') \ | ||
$(shell find . -type f -name '*Pgp3GthUsIpWrapper.vhd') \ | ||
$(shell find . -type f -name '*Pgp3GthUsQpll.vhd') \ | ||
$(shell find . -type f -name '*Pgp3GthUsWrapper.vhd') \ | ||
$(shell find . -type f -name '*InputBufferReg.vhd') \ | ||
$(shell find . -type f -name '*OutputBufferReg.vhd') \ | ||
$(shell find . -type f -name '*GthUltraScaleQuadPll.vhd') \ | ||
$(shell find . -type f -name '*MicroblazeBasicCoreWrapper.vhd') \ | ||
$(shell find . -type f -name '*ComplexFixedPkg.vhd') \ | ||
$(shell find . -type f -name '*SfixedDelay.vhd') \ | ||
$(shell find . -type f -name '*CfixedDelay.vhd') \ | ||
$(shell find . -type f -name '*Csa3.vhd') \ | ||
$(shell find . -type f -name '*Add3.vhd') \ | ||
$(shell find . -type f -name '*SfixedPreAddMultAdd.vhd') \ | ||
$(shell find . -type f -name '*SfixedMultAdd.vhd') \ | ||
$(shell find . -type f -name '*SfixedMult.vhd') \ | ||
$(shell find . -type f -name '*CfixedPreAddMult.vhd') \ | ||
$(shell find . -type f -name '*CfixedMultAdd.vhd') \ | ||
$(shell find . -type f -name '*CfixedMult.vhd') \ | ||
$(shell find . -type f -name '*IirSimple.vhd') \ | ||
$(shell find . -type f -name '*FirAverage.vhd') \ | ||
$(shell find . -type f -name '*SinCosLut.vhd') \ | ||
$(shell find . -type f -name '*SinCosTaylor.vhd') | ||
|
||
|
||
|
||
FILES = $(filter-out $(EXCLUDE),$(wildcard $(PATHS))) | ||
|
||
ENTITY_EXCLUDES = stdlib | ||
|
||
ENTITIES := $(filter-out $(ENTITY_EXCLUDES),$(patsubst %Pkg,,$(patsubst %.vhd,%,$(notdir $(FILES))))) | ||
MAKEFILES = $(patsubst %,%.mk,$(ENTITIES)) | ||
|
||
all: dir import | ||
|
||
#----------------------------------------------------------------------------- | ||
# This file is part of the 'SLAC Firmware Standard Library'. It is subject to | ||
# the license terms in the LICENSE.txt file found in the top-level directory | ||
# of this distribution and at: | ||
# https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. | ||
# No part of the 'SLAC Firmware Standard Library', including this file, may be | ||
# copied, modified, propagated, or distributed except according to the terms | ||
# contained in the LICENSE.txt file. | ||
#----------------------------------------------------------------------------- | ||
|
||
ifndef MODULES | ||
export MODULES = $(abspath $(PWD)/../) | ||
endif | ||
|
||
# GHDL/ruckus source loading | ||
export RUCKUS_DIR = $(MODULES)/ruckus | ||
export TOP_DIR = $(abspath $(PWD)) | ||
export PROJ_DIR = $(abspath $(PWD)) | ||
export OUT_DIR = $(PROJ_DIR)/build | ||
|
||
# Path to GHDL proc.tcl | ||
export RUCKUS_PROC_TCL = $(RUCKUS_DIR)/ghdl/proc.tcl | ||
|
||
# Bypassing Xilinx Specific code | ||
export VIVADO_VERSION = -1.0 | ||
|
||
# Override the submodule check because ruckus external of this repo | ||
export OVERRIDE_SUBMODULE_LOCKS = 1 | ||
|
||
# GHDL build flags | ||
GHDLFLAGS = --workdir=$(OUT_DIR) --ieee=synopsys -fexplicit -frelaxed-rules --warn-no-library | ||
|
||
# Include the shared ruckus Makefile header | ||
include $(RUCKUS_DIR)/system_shared.mk | ||
|
||
# Override system_shared.mk build string | ||
export BUILD_SVR_TYPE = $(shell python -m platform) | ||
export GHDL_VERSION = $(shell ghdl -v 2>&1 | head -n 1) | ||
export BUILD_STRING = $(PROJECT): $(GHDL_VERSION), $(BUILD_SYS_NAME) ($(BUILD_SVR_TYPE)), Built $(BUILD_DATE) by $(BUILD_USER) | ||
|
||
all: syntax | ||
|
||
# Test of the variables | ||
.PHONY : test | ||
test: | ||
@echo GHDLFLAGS: $(GHDLFLAGS) | ||
@echo FILES: $(FILES) | ||
@echo ENTITIES: | ||
@echo "\t$(foreach ARG,$(ENTITIES), $(ARG)\n)" | ||
|
||
clean : | ||
$(GHDL) --clean $(GHDLFLAGS) | ||
|
||
dir: | ||
test -d $(GHDL_WORKDIR) || mkdir $(GHDL_WORKDIR) | ||
|
||
import : $(FILES) | ||
@echo "=============================================================================" | ||
@echo Importing: | ||
@echo "=============================================================================" | ||
$(GHDL) -i $(GHDLFLAGS) $(FILES) | ||
$(GHDL) -i $(GHDLFLAGS) --std=08 $(EXCLUDE) | ||
|
||
syntax: $(FILES) | ||
@echo PWD: $(PWD) | ||
@echo MODULES: $(MODULES) | ||
@echo RUCKUS_DIR: $(RUCKUS_DIR) | ||
@echo PROJ_DIR: $(PROJ_DIR) | ||
@echo OUT_DIR: $(OUT_DIR) | ||
@echo RUCKUS_PROC_TCL: $(RUCKUS_PROC_TCL) | ||
@echo VIVADO_VERSION: $(VIVADO_VERSION) | ||
|
||
# Find all the source code and load it into GHDL | ||
.PHONY : src | ||
src: | ||
@$(RUCKUS_DIR)/ghdl/import.tcl > /dev/null 2>&1 | ||
|
||
# Find all the source code and load it into GHDL | ||
.PHONY : syntax | ||
syntax: src | ||
@echo "=============================================================================" | ||
@echo Syntax Checking: | ||
@echo VHDL Syntax Checking: | ||
@echo "=============================================================================" | ||
$(GHDL) -s $(GHDLFLAGS) $(FILES) | ||
$(GHDL) -s $(GHDLFLAGS) --std=08 $(EXCLUDE) | ||
|
||
makefiles: $(MAKEFILES) | ||
|
||
elaborate: $(ENTITIES) | ||
|
||
$(ENTITIES) : import syntax | ||
$(GHDL) -e $(GHDLFLAGS) $@ | ||
|
||
html : $(FILES) | ||
$(GHDL) --xref-html $(GHDLFLAGS) $(FILES) | ||
|
||
$(MAKEFILES) : import | ||
$(GHDL) --gen-makefile $(GHDLFLAGS) $(patsubst %.mk,%,$@) > work/$@ | ||
|
||
force: | ||
@ghdl -i $(GHDLFLAGS) --work=surf $(PROJ_DIR)/build/SRC_VHDL/surf/* | ||
@ghdl -i $(GHDLFLAGS) --work=ruckus $(PROJ_DIR)/build/SRC_VHDL/ruckus/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.