diff --git a/projects/ad9209_fmca_ebz/vck190/system_bd.tcl b/projects/ad9209_fmca_ebz/vck190/system_bd.tcl index 5839bf4079..9f71a8adc2 100644 --- a/projects/ad9209_fmca_ebz/vck190/system_bd.tcl +++ b/projects/ad9209_fmca_ebz/vck190/system_bd.tcl @@ -11,3 +11,10 @@ set ad_project_params(TX_NUM_LINKS) 1 set ad_project_params(TX_KS_PER_CHANNEL) 1 source $ad_hdl_dir/projects/ad9081_fmca_ebz/vck190/system_bd.tcl + +#system ID +ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" +ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 +set sys_cstring "sys rom custom string placeholder" +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad9213_dual_ebz/s10soc/Makefile b/projects/ad9213_dual_ebz/s10soc/Makefile index d98572082b..7cf8dc92a8 100755 --- a/projects/ad9213_dual_ebz/s10soc/Makefile +++ b/projects/ad9213_dual_ebz/s10soc/Makefile @@ -7,6 +7,7 @@ PROJECT_NAME := ad9213_dual_ebz_s10soc M_DEPS += ../common/ad9213_dual_qsys.tcl +M_DEPS += ../../scripts/adi_pd.tcl M_DEPS += ../../common/s10soc/s10soc_system_qsys.tcl M_DEPS += ../../common/s10soc/s10soc_system_assign.tcl M_DEPS += ../../common/intel/adcfifo_qsys.tcl diff --git a/projects/ad9213_dual_ebz/s10soc/system_qsys.tcl b/projects/ad9213_dual_ebz/s10soc/system_qsys.tcl index 734fb504bb..157016578f 100755 --- a/projects/ad9213_dual_ebz/s10soc/system_qsys.tcl +++ b/projects/ad9213_dual_ebz/s10soc/system_qsys.tcl @@ -1,6 +1,7 @@ set adc_fifo_address_width 15 +source $ad_hdl_dir/projects/scripts/adi_pd.tcl source $ad_hdl_dir/projects/common/s10soc/s10soc_system_qsys.tcl source $ad_hdl_dir/projects/common/intel/adcfifo_qsys.tcl @@ -9,3 +10,12 @@ if [info exists ad_project_dir] { } else { source ../common/ad9213_dual_qsys.tcl } + +#system ID +set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {ROM_ADDR_BITS} {9} + +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "[pwd]/mem_init_sys.txt" + +set sys_cstring "sys rom custom string placeholder"; +sysid_gen_sys_init_file $sys_cstring; \ No newline at end of file diff --git a/projects/adrv9009/s10soc/Makefile b/projects/adrv9009/s10soc/Makefile index 6d561a0cbf..9b9c22872b 100755 --- a/projects/adrv9009/s10soc/Makefile +++ b/projects/adrv9009/s10soc/Makefile @@ -1,20 +1,23 @@ -#################################################################################### -## Copyright (c) 2018 - 2023 Analog Devices, Inc. +############################################################################### +## Copyright (C) 2018-2023 Analog Devices, Inc. ### SPDX short identifier: BSD-1-Clause ## Auto-generated, do not modify! -#################################################################################### +############################################################################### PROJECT_NAME := adrv9009_s10soc M_DEPS += ../common/adrv9009_qsys.tcl +M_DEPS += ../../scripts/adi_pd.tcl M_DEPS += ../../common/s10soc/s10soc_system_qsys.tcl M_DEPS += ../../common/s10soc/s10soc_system_assign.tcl M_DEPS += ../../common/intel/dacfifo_qsys.tcl LIB_DEPS += axi_dmac +LIB_DEPS += axi_sysid LIB_DEPS += intel/adi_jesd204 LIB_DEPS += jesd204/ad_ip_jesd204_tpl_adc LIB_DEPS += jesd204/ad_ip_jesd204_tpl_dac +LIB_DEPS += sysid_rom LIB_DEPS += util_pack/util_cpack2 LIB_DEPS += util_pack/util_upack2 diff --git a/projects/adrv9009/s10soc/system_qsys.tcl b/projects/adrv9009/s10soc/system_qsys.tcl index 40da43cb0b..52c0b0aeef 100755 --- a/projects/adrv9009/s10soc/system_qsys.tcl +++ b/projects/adrv9009/s10soc/system_qsys.tcl @@ -2,6 +2,7 @@ set dac_fifo_address_width 10 set xcvr_reconfig_addr_width 11 +source $ad_hdl_dir/projects/scripts/adi_pd.tcl source $ad_hdl_dir/projects/common/s10soc/s10soc_system_qsys.tcl source $ad_hdl_dir/projects/common/intel/dacfifo_qsys.tcl @@ -10,3 +11,12 @@ if [info exists ad_project_dir] { } else { source ../common/adrv9009_qsys.tcl } + +#system ID +set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {ROM_ADDR_BITS} {9} + +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "[pwd]/mem_init_sys.txt" + +sysid_gen_sys_init_file; + diff --git a/projects/common/s10soc/s10soc_system_qsys.tcl b/projects/common/s10soc/s10soc_system_qsys.tcl index e361966653..ef5d650252 100644 --- a/projects/common/s10soc/s10soc_system_qsys.tcl +++ b/projects/common/s10soc/s10soc_system_qsys.tcl @@ -20,10 +20,16 @@ set_interface_property rst_ninit_done EXPORT_OF s10_reset.ninit_done # sysid +add_instance axi_sysid_0 axi_sysid +add_instance rom_sys_0 sysid_rom + add_instance sys_id altera_avalon_sysid_qsys set_instance_parameter_value sys_id {ID} {0x00000100} add_connection sys_clk.clk sys_id.clk add_connection sys_clk.clk_reset sys_id.reset +add_connection sys_clk.clk rom_sys_0.if_clk +add_connection sys_clk.clk axi_sysid_0.s_axi_clock +add_connection sys_clk.clk_reset axi_sysid_0.s_axi_reset # hps # round-about way - qsys-script doesn't support {*}?