Skip to content
Snippets Groups Projects

Add config files

Merged Jaroslav Beran requested to merge add-config-files into master
2 files
+ 67
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 36
0
#
# Quartus tools has to be in the PATH.
# This can be achieved by entering the
# Embedded Command Shell, whichis located
# in Quartus installation directory
# (intelFPGA/18.1/embedded/embedded_command_shell.sh)
#
QUARTUS_PROJECT_NAME = soc_system
QUARTUS_PROJECT_FILE = $(QUARTUS_PROJECT_NAME).qsf
QUARTUS_QIP_FILE = $(QUARTUS_PROJECT_NAME)/synthesis/$(QUARTUS_PROJECT_NAME).qip
CONVERSION_SETUP_FILE = conversion_setup_sof-to-rbf.cof
all: $(QUARTUS_PROJECT_NAME).rbf
$(QUARTUS_PROJECT_NAME).rbf: $(QUARTUS_PROJECT_NAME).sof
quartus_cpf -c $(CONVERSION_SETUP_FILE)
$(QUARTUS_PROJECT_NAME).sof: transform_qip
quartus_sh --flow compile $(QUARTUS_PROJECT_NAME).qsf
transform_qip: qip
sed -i 's/\(\-library\) "soc_system" \(.*"submodules\/ctucanfd.*".*\)/\1 "ctu_can_fd_rtl" \2/' $(QUARTUS_QIP_FILE)
qip: $(QUARTUS_QIP_FILE)
$(QUARTUS_PROJECT_NAME)/$(QUARTUS_PROJECT_NAME).qip:
qsys-generate $(QUARTUS_PROJECT_NAME).qsys --synthesis=VHDL --output-directory=$(QUARTUS_PROJECT_NAME) --family="Cyclone V" --part=5CSEMA4U23C6
clean:
rm -rf $(QUARTUS_PROJECT_NAME) $(QUARTUS_PROJECT_NAME).{sof,rbf,fit*,map*,sta*,done,pin*,jdi,sld,asm*,flow*} db incremental_db hps_isw_handoff hps_sdram_p0_summary.csv c5_pin_model_dump.txt
.PHONY: clean all transform_qip qip