diff --git a/cyclone-5/soc-5csema4u23c6/Makefile b/cyclone-5/soc-5csema4u23c6/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..65b96f8c11f4228300fb9c465833ac501aa9cebf --- /dev/null +++ b/cyclone-5/soc-5csema4u23c6/Makefile @@ -0,0 +1,36 @@ +# +# 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 + + diff --git a/cyclone-5/soc-5csema4u23c6/conversion_setup_sof-to-rbf.cof b/cyclone-5/soc-5csema4u23c6/conversion_setup_sof-to-rbf.cof new file mode 100644 index 0000000000000000000000000000000000000000..2611331c6d49f7d9bbc765fb70494d8e13b62a8f --- /dev/null +++ b/cyclone-5/soc-5csema4u23c6/conversion_setup_sof-to-rbf.cof @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="US-ASCII" standalone="yes"?> +<cof> + <eprom_name>EPCE16</eprom_name> + <output_filename>soc_system.rbf</output_filename> + <n_pages>1</n_pages> + <width>1</width> + <mode>11</mode> + <sof_data> + <user_name>Page_0</user_name> + <page_flags>1</page_flags> + <bit0> + <sof_filename>soc_system.sof</sof_filename> + </bit0> + </sof_data> + <version>10</version> + <create_cvp_file>0</create_cvp_file> + <create_hps_iocsr>0</create_hps_iocsr> + <auto_create_rpd>0</auto_create_rpd> + <rpd_little_endian>1</rpd_little_endian> + <options> + <map_file>0</map_file> + </options> + <advanced_options> + <ignore_epcs_id_check>2</ignore_epcs_id_check> + <ignore_condone_check>2</ignore_condone_check> + <plc_adjustment>0</plc_adjustment> + <post_chain_bitstream_pad_bytes>-1</post_chain_bitstream_pad_bytes> + <post_device_bitstream_pad_bytes>-1</post_device_bitstream_pad_bytes> + <bitslice_pre_padding>1</bitslice_pre_padding> + </advanced_options> +</cof>