diff --git a/projects/ad40xx_fmc/zed/system_bd.tcl b/projects/ad40xx_fmc/zed/system_bd.tcl index 46952e1c947..469e6047cc3 100644 --- a/projects/ad40xx_fmc/zed/system_bd.tcl +++ b/projects/ad40xx_fmc/zed/system_bd.tcl @@ -21,14 +21,18 @@ set ADC_SAMPLING_RATE [get_env_param ADC_SAMPLING_RATE 1800000] source ../common/ad40xx_bd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 set AD40XX_ADAQ400X_N [get_env_param AD40XX_ADAQ400X_N 1] -set sys_cstring "ad40xx: $AD40XX_ADAQ400X_N - adc_sampling_rate: $ADC_SAMPLING_RATE - adc_resolution: $ADC_RESOLUTION" -sysid_gen_sys_init_file $sys_cstring +if {$AD40XX_ADAQ400X_N == 0} { + set sys_cstring "ADAQ400X" +} else { + set sys_cstring "AD40XX" +} +set sys_cstring $sys_cstring "ADC_SAMPLING_RATE=$ADC_SAMPLING_RATE\ +ADC_RESOLUTION=$ADC_RESOLUTION" +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad4110/zed/system_bd.tcl b/projects/ad4110/zed/system_bd.tcl index ca2e38c3a31..a95d4c75dd1 100644 --- a/projects/ad4110/zed/system_bd.tcl +++ b/projects/ad4110/zed/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/scripts/adi_pd.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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/ad4134_fmc/zed/system_bd.tcl b/projects/ad4134_fmc/zed/system_bd.tcl index f7792463656..16e0c1a7690 100755 --- a/projects/ad4134_fmc/zed/system_bd.tcl +++ b/projects/ad4134_fmc/zed/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/scripts/adi_pd.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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/ad4630_fmc/zed/system_bd.tcl b/projects/ad4630_fmc/zed/system_bd.tcl index cf5c1aab25f..5d429a520e2 100644 --- a/projects/ad4630_fmc/zed/system_bd.tcl +++ b/projects/ad4630_fmc/zed/system_bd.tcl @@ -14,11 +14,14 @@ adi_project_files ad4630_fmc_zed [list \ # block design source ../common/ad463x_bd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "sys rom custom string placeholder" + +set sys_cstring "CLK_MODE=$ad_project_params(CLK_MODE)\ +NUM_OF_SDI=$ad_project_params(NUM_OF_SDI)\ +CAPTURE_ZONE=$ad_project_params(CAPTURE_ZONE)\ +DDR_EN=$ad_project_params(DDR_EN)" + sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad469x_fmc/zed/system_bd.tcl b/projects/ad469x_fmc/zed/system_bd.tcl index ca7562d780d..66c3df4604a 100644 --- a/projects/ad469x_fmc/zed/system_bd.tcl +++ b/projects/ad469x_fmc/zed/system_bd.tcl @@ -22,11 +22,17 @@ adi_project_files ad469x_fmc_zed [list \ source ../common/ad469x_bd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "DATA_WIDTH=$ad_project_params(DATA_WIDTH)\ +ASYNC_SPI_CLK=$ad_project_params(ASYNC_SPI_CLK)\ +NUM_CS=$ad_project_params(NUM_CS)\ +NUM_SDI=$ad_project_params(NUM_SDI)\ +SDI_DELAY=$ad_project_params(SDI_DELAY)\ +SAMPLING_RATE=$adc_sampling_rate" + +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad5758_sdz/zed/system_bd.tcl b/projects/ad5758_sdz/zed/system_bd.tcl index a02b6c4313a..c08a08b945c 100644 --- a/projects/ad5758_sdz/zed/system_bd.tcl +++ b/projects/ad5758_sdz/zed/system_bd.tcl @@ -6,12 +6,9 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file - diff --git a/projects/ad5766_sdz/zed/system_bd.tcl b/projects/ad5766_sdz/zed/system_bd.tcl index 037739bc578..bef02a8a5df 100644 --- a/projects/ad5766_sdz/zed/system_bd.tcl +++ b/projects/ad5766_sdz/zed/system_bd.tcl @@ -6,14 +6,11 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file source ../common/ad5766_bd.tcl - diff --git a/projects/ad6676evb/vc707/system_bd.tcl b/projects/ad6676evb/vc707/system_bd.tcl index 79dad08c7a7..8c2ff1d293c 100644 --- a/projects/ad6676evb/vc707/system_bd.tcl +++ b/projects/ad6676evb/vc707/system_bd.tcl @@ -7,11 +7,11 @@ source $ad_hdl_dir/projects/common/vc707/vc707_system_bd.tcl source ../common/ad6676evb_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:L=$ad_project_params(RX_JESD_L)" + +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad6676evb/zc706/system_bd.tcl b/projects/ad6676evb/zc706/system_bd.tcl index 1fde9d83e56..f4a63998409 100644 --- a/projects/ad6676evb/zc706/system_bd.tcl +++ b/projects/ad6676evb/zc706/system_bd.tcl @@ -7,11 +7,11 @@ source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source ../common/ad6676evb_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:L=$ad_project_params(RX_JESD_L)" + +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad7134_fmc/zed/system_bd.tcl b/projects/ad7134_fmc/zed/system_bd.tcl index be72681081d..046d5ee52b6 100644 --- a/projects/ad7134_fmc/zed/system_bd.tcl +++ b/projects/ad7134_fmc/zed/system_bd.tcl @@ -11,11 +11,9 @@ adi_project_files ad7134_fmc_zed [list \ "$ad_hdl_dir/library/util_cdc/sync_bits.v" \ ] -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/ad719x_asdz/coraz7s/system_bd.tcl b/projects/ad719x_asdz/coraz7s/system_bd.tcl index 4d08467a31f..9f79a0b6a08 100644 --- a/projects/ad719x_asdz/coraz7s/system_bd.tcl +++ b/projects/ad719x_asdz/coraz7s/system_bd.tcl @@ -8,8 +8,7 @@ source $ad_hdl_dir/projects/scripts/adi_pd.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.PATH_TO_FILE "$mem_init_sys_file_path/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 diff --git a/projects/ad738x_fmc/zed/system_bd.tcl b/projects/ad738x_fmc/zed/system_bd.tcl index 69fdb467974..41d851aad4a 100644 --- a/projects/ad738x_fmc/zed/system_bd.tcl +++ b/projects/ad738x_fmc/zed/system_bd.tcl @@ -6,15 +6,6 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - -#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_path" -ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 - -sysid_gen_sys_init_file - # specify ADC resolution -- the design supports 16/14/12 bit resolutions set adc_resolution 16 @@ -27,5 +18,15 @@ set adc_num_of_channels 2 set adc_sampling_rate 3000000 -source ../common/ad738x_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 "$mem_init_sys_file_path/mem_init_sys.txt" +ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 +set sys_cstring "ADC_RESOLUTION=$adc_resolution\ +ADC_NUM_OF_CHANNELS=$adc_num_of_channels\ +ADC_SAMPLING_RATE=$adc_sampling_rate" + +sysid_gen_sys_init_file $sys_cstring + +source ../common/ad738x_bd.tcl diff --git a/projects/ad7405_fmc/zed/system_bd.tcl b/projects/ad7405_fmc/zed/system_bd.tcl index 100863fb766..2bd88e59f2d 100644 --- a/projects/ad7405_fmc/zed/system_bd.tcl +++ b/projects/ad7405_fmc/zed/system_bd.tcl @@ -6,15 +6,6 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - -#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_path" -ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 - -sysid_gen_sys_init_file - # System clock is 100 MHz for this base design set sys_cpu_clk_freq 100 @@ -30,5 +21,16 @@ set clkgen_vco_mul 50 set ext_clk_rate 25 -source ../common/ad7405_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 "$mem_init_sys_file_path/mem_init_sys.txt" +ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 +set sys_cstring "SYS_CPU_CLK_FREQ=$sys_cpu_clk_freq\ +CLKGEN_VCO_DIV=$clkgen_vco_div\ +CLKGEN_VCO_MUL=$clkgen_vco_mul\ +EXT_CLK_RATE=$ext_clk_rate" + +sysid_gen_sys_init_file $sys_cstring + +source ../common/ad7405_bd.tcl diff --git a/projects/ad7606x_fmc/zed/system_bd.tcl b/projects/ad7606x_fmc/zed/system_bd.tcl index 369a0261bf8..975aa0ca8bd 100644 --- a/projects/ad7606x_fmc/zed/system_bd.tcl +++ b/projects/ad7606x_fmc/zed/system_bd.tcl @@ -10,8 +10,11 @@ source ../common/ad7606x_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "$DEV_CONFIG,$SIMPLE_STATUS_CRC,$EXT_CLK" + +set sys_cstring "DEV_CONFIG=$DEV_CONFIG\ +SIMPLE_STATUS_CRC=$SIMPLE_STATUS_CRC\ +EXT_CLK=$EXT_CLK" sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad7616_sdz/zc706/system_bd.tcl b/projects/ad7616_sdz/zc706/system_bd.tcl index ed8efbbf425..c0489682e60 100644 --- a/projects/ad7616_sdz/zc706/system_bd.tcl +++ b/projects/ad7616_sdz/zc706/system_bd.tcl @@ -6,14 +6,15 @@ source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file - -source ../common/ad7616_bd.tcl +if {$SI_OR_PI == 0} { + set sys_cstring "SI" +} else { + set sys_cstring "PI" +} +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad7616_sdz/zed/system_bd.tcl b/projects/ad7616_sdz/zed/system_bd.tcl index 628a6ff9038..f0436b12330 100644 --- a/projects/ad7616_sdz/zed/system_bd.tcl +++ b/projects/ad7616_sdz/zed/system_bd.tcl @@ -6,14 +6,15 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file - -source ../common/ad7616_bd.tcl +if {$SI_OR_PI == 0} { + set sys_cstring "SI" +} else { + set sys_cstring "PI" +} +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad77681evb/zed/system_bd.tcl b/projects/ad77681evb/zed/system_bd.tcl index 8caa481b4d7..2c36909d712 100644 --- a/projects/ad77681evb/zed/system_bd.tcl +++ b/projects/ad77681evb/zed/system_bd.tcl @@ -6,14 +6,11 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file source ../common/ad77681evb_bd.tcl - diff --git a/projects/ad7768evb/zed/system_bd.tcl b/projects/ad7768evb/zed/system_bd.tcl index 197bfe125bf..eb55608c0f3 100644 --- a/projects/ad7768evb/zed/system_bd.tcl +++ b/projects/ad7768evb/zed/system_bd.tcl @@ -6,11 +6,9 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/ad777x_ardz/de10nano/system_qsys.tcl b/projects/ad777x_ardz/de10nano/system_qsys.tcl index e49be23168a..ad9b1084d42 100644 --- a/projects/ad777x_ardz/de10nano/system_qsys.tcl +++ b/projects/ad777x_ardz/de10nano/system_qsys.tcl @@ -18,6 +18,6 @@ set_instance_parameter_value sys_spi {clockPolarity} {0} 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_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" -sysid_gen_sys_init_file; +sysid_gen_sys_init_file diff --git a/projects/ad777x_ardz/zed/system_bd.tcl b/projects/ad777x_ardz/zed/system_bd.tcl index 1340c4af8f0..e233eb49279 100644 --- a/projects/ad777x_ardz/zed/system_bd.tcl +++ b/projects/ad777x_ardz/zed/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source ../common/ad777x_ardz_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/ad9081_fmca_ebz/a10soc/system_qsys.tcl b/projects/ad9081_fmca_ebz/a10soc/system_qsys.tcl index f5610484891..119d26a8b6a 100755 --- a/projects/ad9081_fmca_ebz/a10soc/system_qsys.tcl +++ b/projects/ad9081_fmca_ebz/a10soc/system_qsys.tcl @@ -21,9 +21,22 @@ if [info exists ad_project_dir] { #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +set sys_cstring "RX:RATE=$ad_project_params(RX_LANE_RATE)\ +M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP)\ +LINKS=$ad_project_params(RX_NUM_LINKS)\ +KS/CH=$ad_project_params(RX_KS_PER_CHANNEL)\ +TX:RATE=$ad_project_params(TX_LANE_RATE)\ +M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +NP=$ad_project_params(TX_JESD_NP)\ +LINKS=$ad_project_params(TX_NUM_LINKS)\ +KS/CH=$ad_project_params(TX_KS_PER_CHANNEL)" +sysid_gen_sys_init_file sys_cstring diff --git a/projects/ad9081_fmca_ebz/vck190/system_bd.tcl b/projects/ad9081_fmca_ebz/vck190/system_bd.tcl index 00f8d543266..a0808398c0d 100644 --- a/projects/ad9081_fmca_ebz/vck190/system_bd.tcl +++ b/projects/ad9081_fmca_ebz/vck190/system_bd.tcl @@ -18,12 +18,25 @@ set ADI_PHY_SEL 0 source $ad_hdl_dir/projects/ad9081_fmca_ebz/common/ad9081_fmca_ebz_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" -ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 - -sysid_gen_sys_init_file - +ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 10 +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" +ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 10 + +set sys_cstring "$ad_project_params(JESD_MODE)\ +RX:RATE=$ad_project_params(RX_LANE_RATE)\ +M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP)\ +LINKS=$ad_project_params(RX_NUM_LINKS)\ +KS/CH=$ad_project_params(RX_KS_PER_CHANNEL)\ +TX:RATE=$ad_project_params(TX_LANE_RATE)\ +M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +NP=$ad_project_params(TX_JESD_NP)\ +LINKS=$ad_project_params(TX_NUM_LINKS)\ +KS/CH=$ad_project_params(TX_KS_PER_CHANNEL)" + +sysid_gen_sys_init_file $sys_cstring 10 diff --git a/projects/ad9081_fmca_ebz/vcu118/system_bd.tcl b/projects/ad9081_fmca_ebz/vcu118/system_bd.tcl index 62260bea93c..3997693433f 100644 --- a/projects/ad9081_fmca_ebz/vcu118/system_bd.tcl +++ b/projects/ad9081_fmca_ebz/vcu118/system_bd.tcl @@ -21,14 +21,28 @@ if {$INTF_CFG != "RX"} { ad_ip_parameter axi_mxfe_tx_jesd/tx CONFIG.NUM_OUTPUT_PIPELINE 1 } -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" -ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 - -sysid_gen_sys_init_file +ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 10 +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" +ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 10 + +set sys_cstring "$ad_project_params(JESD_MODE)\ +RX:RATE=$ad_project_params(RX_LANE_RATE)\ +M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP)\ +LINKS=$ad_project_params(RX_NUM_LINKS)\ +KS/CH=$ad_project_params(RX_KS_PER_CHANNEL)\ +TX:RATE=$ad_project_params(TX_LANE_RATE)\ +M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +NP=$ad_project_params(TX_JESD_NP)\ +LINKS=$ad_project_params(TX_NUM_LINKS)\ +KS/CH=$ad_project_params(TX_KS_PER_CHANNEL)" + +sysid_gen_sys_init_file $sys_cstring 10 # Parameters for 15.5Gpbs lane rate diff --git a/projects/ad9081_fmca_ebz/vcu128/system_bd.tcl b/projects/ad9081_fmca_ebz/vcu128/system_bd.tcl index 4400cb2c054..8c3e2db8a41 100644 --- a/projects/ad9081_fmca_ebz/vcu128/system_bd.tcl +++ b/projects/ad9081_fmca_ebz/vcu128/system_bd.tcl @@ -31,14 +31,30 @@ ad_connect HBM/HBM_REF_CLK_0 $sys_cpu_clk ad_connect HBM/APB_0_PCLK $sys_cpu_clk ad_connect HBM/APB_0_PRESET_N $sys_cpu_resetn -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" -ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 - -sysid_gen_sys_init_file +ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 10 +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" +ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 10 + +set sys_cstring "$ad_project_params(JESD_MODE)\ +RX:RATE=$ad_project_params(RX_LANE_RATE)\ +M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP)\ +LINKS=$ad_project_params(RX_NUM_LINKS)\ +KS/CH=$ad_project_params(RX_KS_PER_CHANNEL)\ +TX:RATE=$ad_project_params(TX_LANE_RATE)\ +M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +NP=$ad_project_params(TX_JESD_NP)\ +LINKS=$ad_project_params(TX_NUM_LINKS)\ +KS/CH=$ad_project_params(TX_KS_PER_CHANNEL)\ +ADC_DO_MEM_TYPE:$ad_project_params(ADC_DO_MEM_TYPE)\ +DAC_DO_MEM_TYPE:$ad_project_params(DAC_DO_MEM_TYPE)" + +sysid_gen_sys_init_file $sys_cstring 10 # Parameters for 15.5Gpbs lane rate diff --git a/projects/ad9081_fmca_ebz/zc706/system_bd.tcl b/projects/ad9081_fmca_ebz/zc706/system_bd.tcl index 02ab04d1768..b952613a956 100644 --- a/projects/ad9081_fmca_ebz/zc706/system_bd.tcl +++ b/projects/ad9081_fmca_ebz/zc706/system_bd.tcl @@ -15,12 +15,23 @@ source $ad_hdl_dir/projects/ad9081_fmca_ebz/common/ad9081_fmca_ebz_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "$ad_project_params(JESD_MODE)\ +RX:RATE=$ad_project_params(RX_LANE_RATE)\ +M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP)\ +LINKS=$ad_project_params(RX_NUM_LINKS)\ +TX:RATE=$ad_project_params(TX_LANE_RATE)\ +M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +NP=$ad_project_params(TX_JESD_NP)\ +LINKS=$ad_project_params(TX_NUM_LINKS)" +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad9081_fmca_ebz/zcu102/system_bd.tcl b/projects/ad9081_fmca_ebz/zcu102/system_bd.tcl index 6b47843f0ed..247b44dfd3d 100644 --- a/projects/ad9081_fmca_ebz/zcu102/system_bd.tcl +++ b/projects/ad9081_fmca_ebz/zcu102/system_bd.tcl @@ -8,7 +8,6 @@ set adc_fifo_samples_per_converter [expr 64*1024] ## DAC FIFO depth in samples per converter set dac_fifo_samples_per_converter [expr 64*1024] - source $ad_hdl_dir/projects/common/zcu102/zcu102_system_bd.tcl source $ad_hdl_dir/projects/common/xilinx/adcfifo_bd.tcl source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl @@ -18,14 +17,30 @@ ad_mem_hp0_interconnect $sys_cpu_clk sys_ps8/S_AXI_HP0 source $ad_hdl_dir/projects/ad9081_fmca_ebz/common/ad9081_fmca_ebz_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" -ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 +ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 10 +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" +ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 10 -sysid_gen_sys_init_file +set sys_cstring "$ad_project_params(JESD_MODE)\ +RX:RATE=$ad_project_params(RX_LANE_RATE)\ +M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP)\ +LINKS=$ad_project_params(RX_NUM_LINKS)\ +TPL_W=$ad_project_params(RX_TPL_WIDTH)\ +TX:RATE=$ad_project_params(TX_LANE_RATE)\ +M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +NP=$ad_project_params(TX_JESD_NP)\ +LINKS=$ad_project_params(TX_NUM_LINKS)\ +TPL_W=$ad_project_params(TX_TPL_WIDTH)\ +TDD=$ad_project_params(TDD_SUPPORT)\ +SHARED_DEVCLK=$ad_project_params(SHARED_DEVCLK)" + +sysid_gen_sys_init_file $sys_cstring 10 # Parameters for 15.5Gpbs lane rate @@ -71,4 +86,3 @@ if {$ad_project_params(RX_LANE_RATE) < 12} { ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3_GEN3 0x12 ad_ip_parameter util_mxfe_xcvr CONFIG.RXCDR_CFG3_GEN4 0x12 } - diff --git a/projects/ad9081_fmca_ebz_x_band/zcu102/system_bd.tcl b/projects/ad9081_fmca_ebz_x_band/zcu102/system_bd.tcl index 8664526421e..e97e37d40d0 100644 --- a/projects/ad9081_fmca_ebz_x_band/zcu102/system_bd.tcl +++ b/projects/ad9081_fmca_ebz_x_band/zcu102/system_bd.tcl @@ -18,11 +18,29 @@ source $ad_hdl_dir/projects/ad9081_fmca_ebz/common/ad9081_fmca_ebz_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.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 - -sysid_gen_sys_init_file +ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 10 +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" +ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 10 + +set sys_cstring "$ad_project_params(JESD_MODE)\ +RX:RATE=$ad_project_params(RX_LANE_RATE)\ +M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP)\ +LINKS=$ad_project_params(RX_NUM_LINKS)\ +KS/CH=$ad_project_params(RX_KS_PER_CHANNEL)\ +TX:RATE=$ad_project_params(TX_LANE_RATE)\ +M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +NP=$ad_project_params(TX_JESD_NP)\ +LINKS=$ad_project_params(TX_NUM_LINKS)\ +KS/CH=$ad_project_params(TX_KS_PER_CHANNEL)\ +TDD=$ad_project_params(TDD_SUPPORT)\ +SHARED_DEVCLK=$ad_project_params(SHARED_DEVCLK)" + +sysid_gen_sys_init_file $sys_cstring 10 # Parameters for 15.5Gpbs lane rate @@ -154,4 +172,3 @@ ad_connect axi_tdd_0/tdd_channel_2 tdd_enabled ad_connect axi_tdd_0/tdd_channel_3 tdd_rx_mxfe_en ad_connect axi_tdd_0/tdd_channel_4 tdd_tx_mxfe_en ad_connect axi_tdd_0/tdd_channel_5 tdd_tx_stingray_en - diff --git a/projects/ad9082_fmca_ebz/vcu118/system_bd.tcl b/projects/ad9082_fmca_ebz/vcu118/system_bd.tcl index 60469cb3aeb..dcf572150b9 100644 --- a/projects/ad9082_fmca_ebz/vcu118/system_bd.tcl +++ b/projects/ad9082_fmca_ebz/vcu118/system_bd.tcl @@ -3,4 +3,4 @@ # SPDX short identifier: ADIBSD ############################################################################### -source $ad_hdl_dir/projects/ad9081_fmca_ebz/vcu118/system_bd.tcl \ No newline at end of file +source $ad_hdl_dir/projects/ad9081_fmca_ebz/vcu118/system_bd.tcl diff --git a/projects/ad9083_evb/a10soc/system_qsys.tcl b/projects/ad9083_evb/a10soc/system_qsys.tcl index c281c9e296c..419a600d014 100644 --- a/projects/ad9083_evb/a10soc/system_qsys.tcl +++ b/projects/ad9083_evb/a10soc/system_qsys.tcl @@ -4,6 +4,7 @@ ############################################################################### set adc_fifo_address_width 8 + source $ad_hdl_dir/projects/scripts/adi_pd.tcl source $ad_hdl_dir/projects/common/a10soc/a10soc_system_qsys.tcl source $ad_hdl_dir/projects/common/a10soc/a10soc_plddr4_dacfifo_qsys.tcl @@ -17,9 +18,7 @@ if [info exists ad_project_dir] { #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; - +sysid_gen_sys_init_file diff --git a/projects/ad9083_evb/zcu102/system_bd.tcl b/projects/ad9083_evb/zcu102/system_bd.tcl index ae898f7ae20..fee87093786 100644 --- a/projects/ad9083_evb/zcu102/system_bd.tcl +++ b/projects/ad9083_evb/zcu102/system_bd.tcl @@ -7,14 +7,13 @@ source $ad_hdl_dir/projects/common/zcu102/zcu102_system_bd.tcl source ../common/ad9083_evb_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "RX_NUM_OF_LANES=$RX_NUM_OF_LANES \ -RX_NUM_OF_CONVERTERS=$RX_NUM_OF_CONVERTERS \ -RX_SAMPLES_PER_FRAME=$RX_SAMPLES_PER_FRAME" -sysid_gen_sys_init_file $sys_cstring +set sys_cstring "RX:L=$ad_project_params(RX_JESD_L)\ +M=$ad_project_params(RX_JESD_M)\ +S=$ad_project_params(RX_JESD_S)" + +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad9083_vna/zcu102/system_bd.tcl b/projects/ad9083_vna/zcu102/system_bd.tcl index 437879b690e..7653ed43957 100644 --- a/projects/ad9083_vna/zcu102/system_bd.tcl +++ b/projects/ad9083_vna/zcu102/system_bd.tcl @@ -10,9 +10,11 @@ source ../common/ad9083_vna_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "RX_NUM_OF_LANES=$RX_NUM_OF_LANES \ -RX_NUM_OF_CONVERTERS=$RX_NUM_OF_CONVERTERS \ -RX_SAMPLES_PER_FRAME=$RX_SAMPLES_PER_FRAME" + +set sys_cstring "RX:L=$ad_project_params(RX_JESD_L)\ +M=$ad_project_params(RX_JESD_M)\ +S=$ad_project_params(RX_JESD_S)" + sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad9208_dual_ebz/vcu118/system_bd.tcl b/projects/ad9208_dual_ebz/vcu118/system_bd.tcl index ff6b504b0e0..985fe4fc9c3 100644 --- a/projects/ad9208_dual_ebz/vcu118/system_bd.tcl +++ b/projects/ad9208_dual_ebz/vcu118/system_bd.tcl @@ -11,11 +11,9 @@ source $ad_hdl_dir/projects/common/xilinx/adcfifo_bd.tcl source ../common/dual_ad9208_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file @@ -39,5 +37,3 @@ foreach i {0 1} { ad_ip_parameter util_adc_${i}_xcvr CONFIG.PPF0_CFG 0xB00 } - - diff --git a/projects/ad9213_evb/vcu118/system_bd.tcl b/projects/ad9213_evb/vcu118/system_bd.tcl index 97ae003de19..ffc5f1715d8 100755 --- a/projects/ad9213_evb/vcu118/system_bd.tcl +++ b/projects/ad9213_evb/vcu118/system_bd.tcl @@ -17,7 +17,7 @@ ad_ip_parameter hmc7044_spi CONFIG.C_SCK_RATIO 16 #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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/ad9265_fmc/zc706/system_bd.tcl b/projects/ad9265_fmc/zc706/system_bd.tcl index c6859b55cbf..b642b2a3328 100644 --- a/projects/ad9265_fmc/zc706/system_bd.tcl +++ b/projects/ad9265_fmc/zc706/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source ../common/ad9265_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/ad9434_fmc/zc706/system_bd.tcl b/projects/ad9434_fmc/zc706/system_bd.tcl index ccc38f98cb2..c68dd675db1 100644 --- a/projects/ad9434_fmc/zc706/system_bd.tcl +++ b/projects/ad9434_fmc/zc706/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source ../common/ad9434_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/ad9467_fmc/kc705/system_bd.tcl b/projects/ad9467_fmc/kc705/system_bd.tcl index a1d6cce213d..5aa4329326f 100644 --- a/projects/ad9467_fmc/kc705/system_bd.tcl +++ b/projects/ad9467_fmc/kc705/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/kc705/kc705_system_bd.tcl source ../common/ad9467_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/ad9467_fmc/zed/system_bd.tcl b/projects/ad9467_fmc/zed/system_bd.tcl index 0ac736def7e..e09ae99f169 100644 --- a/projects/ad9467_fmc/zed/system_bd.tcl +++ b/projects/ad9467_fmc/zed/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source ../common/ad9467_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/ad9656_fmc/zcu102/system_bd.tcl b/projects/ad9656_fmc/zcu102/system_bd.tcl index 16bd58a28d2..797a96b307d 100644 --- a/projects/ad9656_fmc/zcu102/system_bd.tcl +++ b/projects/ad9656_fmc/zcu102/system_bd.tcl @@ -6,15 +6,13 @@ source $ad_hdl_dir/projects/common/zcu102/zcu102_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 + sysid_gen_sys_init_file ad_mem_hp0_interconnect sys_cpu_clk sys_ps8/S_AXI_HP0 source ../common/ad9656_fmc_bd.tcl - diff --git a/projects/ad9695_fmc/zcu102/system_bd.tcl b/projects/ad9695_fmc/zcu102/system_bd.tcl index ab4b4693d1a..f0af8852bcf 100644 --- a/projects/ad9695_fmc/zcu102/system_bd.tcl +++ b/projects/ad9695_fmc/zcu102/system_bd.tcl @@ -7,11 +7,13 @@ source $ad_hdl_dir/projects/common/zcu102/zcu102_system_bd.tcl source ../common/ad9695_fmc_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "sys rom custom string placeholder" + +set sys_cstring "RX:L=$ad_project_params(RX_JESD_L)\ +M=$ad_project_params(RX_JESD_M)\ +S=$ad_project_params(RX_JESD_S)" + sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad9739a_fmc/zc706/system_bd.tcl b/projects/ad9739a_fmc/zc706/system_bd.tcl index 62280efa2d8..6f4103cf8fb 100644 --- a/projects/ad9739a_fmc/zc706/system_bd.tcl +++ b/projects/ad9739a_fmc/zc706/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source ../common/ad9739a_fmc_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/ad9783_ebz/zcu102/system_bd.tcl b/projects/ad9783_ebz/zcu102/system_bd.tcl index 6d249907642..6fec92d02ef 100755 --- a/projects/ad9783_ebz/zcu102/system_bd.tcl +++ b/projects/ad9783_ebz/zcu102/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/zcu102/zcu102_system_bd.tcl source ../common/ad9783_ebz_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/ad_fmclidar1_ebz/a10soc/system_qsys.tcl b/projects/ad_fmclidar1_ebz/a10soc/system_qsys.tcl index 4fcfe612422..e0e89a310ec 100644 --- a/projects/ad_fmclidar1_ebz/a10soc/system_qsys.tcl +++ b/projects/ad_fmclidar1_ebz/a10soc/system_qsys.tcl @@ -24,11 +24,17 @@ source $ad_hdl_dir/projects/scripts/adi_pd.tcl #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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 "SAMPLE_RATE_MHZ=$SAMPLE_RATE_MHZ\ +M=$NUM_OF_CHANNELS\ +S=$SAMPLES_PER_FRAME\ +L=$NUM_OF_LANES\ +NP=$ADC_RESOLUTION\ +LR=$LANE_RATE" -sysid_gen_sys_init_file; +sysid_gen_sys_init_file $sys_cstring #spi set_instance_parameter_value sys_spi {clockPhase} {1} diff --git a/projects/ad_fmclidar1_ebz/zc706/system_bd.tcl b/projects/ad_fmclidar1_ebz/zc706/system_bd.tcl index d38d1125af0..02977fed027 100644 --- a/projects/ad_fmclidar1_ebz/zc706/system_bd.tcl +++ b/projects/ad_fmclidar1_ebz/zc706/system_bd.tcl @@ -39,12 +39,16 @@ ad_ip_parameter sys_ps7 CONFIG.PCW_I2C1_PERIPHERAL_ENABLE 1 ad_connect iic_dac sys_ps7/IIC_1 -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - # System ID instance and configuration 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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "SAMPLE_RATE_MHZ=$SAMPLE_RATE_MHZ\ +M=$NUM_OF_CHANNELS\ +S=$SAMPLES_PER_FRAME\ +L=$NUM_OF_LANES\ +NP=$ADC_RESOLUTION\ +LR=$LANE_RATE" +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad_fmclidar1_ebz/zcu102/system_bd.tcl b/projects/ad_fmclidar1_ebz/zcu102/system_bd.tcl index 16d02ca4465..6a51ab121b2 100644 --- a/projects/ad_fmclidar1_ebz/zcu102/system_bd.tcl +++ b/projects/ad_fmclidar1_ebz/zcu102/system_bd.tcl @@ -41,12 +41,16 @@ ad_cpu_interconnect 0x7c800000 afe_dac_iic ad_cpu_interrupt ps-12 mb-14 afe_dac_iic/iic2intc_irpt -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - # System ID instance and configuration 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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "SAMPLE_RATE_MHZ=$SAMPLE_RATE_MHZ\ +M=$NUM_OF_CHANNELS\ +S=$SAMPLES_PER_FRAME\ +L=$NUM_OF_LANES\ +NP=$ADC_RESOLUTION\ +LR=$LANE_RATE" +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad_quadmxfe1_ebz/vcu118/system_bd.tcl b/projects/ad_quadmxfe1_ebz/vcu118/system_bd.tcl index 3d2c50dbb02..3ed16129b91 100644 --- a/projects/ad_quadmxfe1_ebz/vcu118/system_bd.tcl +++ b/projects/ad_quadmxfe1_ebz/vcu118/system_bd.tcl @@ -17,14 +17,32 @@ source $ad_hdl_dir/projects/scripts/adi_pd.tcl # Set SPI clock to 100/16 = 6.25 MHz ad_ip_parameter axi_spi CONFIG.C_SCK_RATIO 16 -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" -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 +ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 10 +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" +ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 10 + +set sys_cstring "$ad_project_params(JESD_MODE)\ +RX:RATE=$ad_project_params(RX_LANE_RATE)\ +M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP)\ +LINKS=$ad_project_params(RX_NUM_LINKS)\ +KS/CH=$ad_project_params(RX_KS_PER_CHANNEL)\ +PLL_SEL=$ad_project_params(RX_PLL_SEL)\ +TX:RATE=$ad_project_params(TX_LANE_RATE)\ +M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +NP=$ad_project_params(TX_JESD_NP)\ +LINKS=$ad_project_params(TX_NUM_LINKS)\ +KS/CH=$ad_project_params(TX_KS_PER_CHANNEL)\ +PLL_SEL=$ad_project_params(TX_PLL_SEL)\ +REF_CLK=$ad_project_params(REF_CLK_RATE)\ +DAC_TPL_XBAR=$ad_project_params(DAC_TPL_XBAR_ENABLE)" + +sysid_gen_sys_init_file $sys_cstring 10 if {$ad_project_params(JESD_MODE) == "8B10B"} { # Parameters for 10Gpbs lane rate diff --git a/projects/adaq7980_sdz/zed/system_bd.tcl b/projects/adaq7980_sdz/zed/system_bd.tcl index 2a10ae08c39..e869d4d266e 100644 --- a/projects/adaq7980_sdz/zed/system_bd.tcl +++ b/projects/adaq7980_sdz/zed/system_bd.tcl @@ -6,17 +6,16 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; +# specify ADC sampling rate in samples/seconds -- default is 1 MSPS +set adc_sampling_rate 1000000 #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "ADC_SAMPLING_RATE=$adc_sampling_rate" -# specify ADC sampling rate in samples/seconds -- default is 1 MSPS -set adc_sampling_rate 1000000 +sysid_gen_sys_init_file $sys_cstring source ../common/adaq7980_bd.tcl - diff --git a/projects/adaq8092_fmc/zed/system_bd.tcl b/projects/adaq8092_fmc/zed/system_bd.tcl index 8aae6b8c6f7..928a8d0ca56 100644 --- a/projects/adaq8092_fmc/zed/system_bd.tcl +++ b/projects/adaq8092_fmc/zed/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source ../common/adaq8092_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/adrv9001/a10soc/system_qsys.tcl b/projects/adrv9001/a10soc/system_qsys.tcl index 22033d756d9..cf351a3dfef 100644 --- a/projects/adrv9001/a10soc/system_qsys.tcl +++ b/projects/adrv9001/a10soc/system_qsys.tcl @@ -16,9 +16,8 @@ set_instance_parameter_value sys_spi {clockPolarity} {0} #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/adrv9001/zc706/system_bd.tcl b/projects/adrv9001/zc706/system_bd.tcl index 05898cf2127..ad1b3f0c5f1 100644 --- a/projects/adrv9001/zc706/system_bd.tcl +++ b/projects/adrv9001/zc706/system_bd.tcl @@ -7,12 +7,15 @@ source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source ../common/adrv9001_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "CMOS_LVDS_N=${ad_project_params(CMOS_LVDS_N)}" -sysid_gen_sys_init_file $sys_cstring +if {$ad_project_params(CMOS_LVDS_N) == 0} { + set sys_cstring "LVDS" +} else { + set sys_cstring "CMOS" +} + +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/adrv9001/zcu102/system_bd.tcl b/projects/adrv9001/zcu102/system_bd.tcl index efd6f35c1e9..2106c72c23f 100644 --- a/projects/adrv9001/zcu102/system_bd.tcl +++ b/projects/adrv9001/zcu102/system_bd.tcl @@ -9,14 +9,17 @@ source $ad_hdl_dir/projects/scripts/adi_pd.tcl ad_ip_parameter axi_adrv9001 CONFIG.USE_RX_CLK_FOR_TX [expr $ad_project_params(CMOS_LVDS_N) == 0] -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "CMOS_LVDS_N=${ad_project_params(CMOS_LVDS_N)}" + +if {$ad_project_params(CMOS_LVDS_N) == 0} { + set sys_cstring "LVDS" +} else { + set sys_cstring "CMOS" +} + sysid_gen_sys_init_file $sys_cstring set_property strategy Flow_RunPostRoutePhysOpt [get_runs impl_1] - diff --git a/projects/adrv9001/zed/system_bd.tcl b/projects/adrv9001/zed/system_bd.tcl index 239b0564934..974093a0e04 100644 --- a/projects/adrv9001/zed/system_bd.tcl +++ b/projects/adrv9001/zed/system_bd.tcl @@ -10,12 +10,15 @@ source $ad_hdl_dir/projects/scripts/adi_pd.tcl ad_ip_parameter axi_adrv9001 CONFIG.RX_USE_BUFG 1 ad_ip_parameter axi_adrv9001 CONFIG.TX_USE_BUFG 1 -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +if {$ad_project_params(CMOS_LVDS_N) == 0} { + set sys_cstring "LVDS" +} else { + set sys_cstring "CMOS" +} +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/adrv9009/a10soc/system_qsys.tcl b/projects/adrv9009/a10soc/system_qsys.tcl index d57748c1eab..08ac7ec2a45 100755 --- a/projects/adrv9009/a10soc/system_qsys.tcl +++ b/projects/adrv9009/a10soc/system_qsys.tcl @@ -4,6 +4,7 @@ ############################################################################### set dac_fifo_address_width 10 + source $ad_hdl_dir/projects/scripts/adi_pd.tcl source $ad_hdl_dir/projects/common/a10soc/a10soc_system_qsys.tcl source $ad_hdl_dir/projects/common/a10soc/a10soc_plddr4_dacfifo_qsys.tcl @@ -16,9 +17,9 @@ if [info exists ad_project_dir] { #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +set sys_cstring "DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/adrv9009/zc706/system_bd.tcl b/projects/adrv9009/zc706/system_bd.tcl index 124e80d7fc0..32cfd1c22f9 100644 --- a/projects/adrv9009/zc706/system_bd.tcl +++ b/projects/adrv9009/zc706/system_bd.tcl @@ -4,18 +4,28 @@ ############################################################################### set dac_fifo_address_width 10 + source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source $ad_hdl_dir/projects/common/zc706/zc706_plddr3_dacfifo_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +RX_OS:M=$ad_project_params(RX_OS_JESD_M)\ +L=$ad_project_params(RX_OS_JESD_L)\ +S=$ad_project_params(RX_OS_JESD_S)\ +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring ad_ip_parameter sys_ps7 CONFIG.PCW_FPGA2_PERIPHERAL_FREQMHZ 250 diff --git a/projects/adrv9009/zcu102/system_bd.tcl b/projects/adrv9009/zcu102/system_bd.tcl index d924ba2ef76..98475587727 100644 --- a/projects/adrv9009/zcu102/system_bd.tcl +++ b/projects/adrv9009/zcu102/system_bd.tcl @@ -12,14 +12,23 @@ source $ad_hdl_dir/projects/common/zcu102/zcu102_system_bd.tcl source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +RX_OS:M=$ad_project_params(RX_OS_JESD_M)\ +L=$ad_project_params(RX_OS_JESD_L)\ +S=$ad_project_params(RX_OS_JESD_S)\ +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring ad_mem_hp0_interconnect sys_cpu_clk sys_ps8/S_AXI_HP0 @@ -34,4 +43,3 @@ ad_ip_parameter axi_adrv9009_tx_dma CONFIG.FIFO_SIZE 32 ad_ip_parameter util_adrv9009_xcvr CONFIG.QPLL_FBDIV 80 ad_ip_parameter util_adrv9009_xcvr CONFIG.QPLL_REFCLK_DIV 1 - diff --git a/projects/adrv9009zu11eg/adrv2crr_fmc/system_bd.tcl b/projects/adrv9009zu11eg/adrv2crr_fmc/system_bd.tcl index 5834d154e77..823586f7bfc 100644 --- a/projects/adrv9009zu11eg/adrv2crr_fmc/system_bd.tcl +++ b/projects/adrv9009zu11eg/adrv2crr_fmc/system_bd.tcl @@ -7,10 +7,20 @@ source ../common/adrv9009zu11eg_bd.tcl source ../common/adrv2crr_fmc_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - 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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +RX_OS:M=$ad_project_params(RX_OS_JESD_M)\ +L=$ad_project_params(RX_OS_JESD_L)\ +S=$ad_project_params(RX_OS_JESD_S)" + +sysid_gen_sys_init_file $sys_cstring + sysid_gen_sys_init_file diff --git a/projects/adrv9009zu11eg/adrv2crr_fmcomms8/system_bd.tcl b/projects/adrv9009zu11eg/adrv2crr_fmcomms8/system_bd.tcl index fdcb700f64b..90985120196 100644 --- a/projects/adrv9009zu11eg/adrv2crr_fmcomms8/system_bd.tcl +++ b/projects/adrv9009zu11eg/adrv2crr_fmcomms8/system_bd.tcl @@ -4,6 +4,7 @@ ############################################################################### set FMCOMMS8 1 + source ../common/adrv9009zu11eg_bd.tcl source ../common/adrv2crr_fmc_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl @@ -79,13 +80,21 @@ ad_xcvrpll axi_adrv9009_som_rx_xcvr/up_pll_rst util_adrv9009_som_xcvr/up_cpll_r ad_xcvrpll axi_adrv9009_som_obs_xcvr/up_pll_rst util_adrv9009_som_xcvr/up_cpll_rst_14 ad_xcvrpll axi_adrv9009_som_obs_xcvr/up_pll_rst util_adrv9009_som_xcvr/up_cpll_rst_15 -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - 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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +RX_OS:M=$ad_project_params(RX_OS_JESD_M)\ +L=$ad_project_params(RX_OS_JESD_L)\ +S=$ad_project_params(RX_OS_JESD_S)" + +sysid_gen_sys_init_file $sys_cstring ad_cpu_interconnect 0x46000000 axi_fmcomms8_gpio diff --git a/projects/adrv9009zu11eg/adrv2crr_fmcxmwbr1/system_bd.tcl b/projects/adrv9009zu11eg/adrv2crr_fmcxmwbr1/system_bd.tcl index e9d95f5459f..f0ebafcf8a0 100755 --- a/projects/adrv9009zu11eg/adrv2crr_fmcxmwbr1/system_bd.tcl +++ b/projects/adrv9009zu11eg/adrv2crr_fmcxmwbr1/system_bd.tcl @@ -7,13 +7,21 @@ source ../common/adrv9009zu11eg_bd.tcl source ../common/adrv2crr_fmc_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - 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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +RX_OS:M=$ad_project_params(RX_OS_JESD_M)\ +L=$ad_project_params(RX_OS_JESD_L)\ +S=$ad_project_params(RX_OS_JESD_S)" + +sysid_gen_sys_init_file $sys_cstring # iic diff --git a/projects/adrv9009zu11eg/adrv2crr_xmicrowave/system_bd.tcl b/projects/adrv9009zu11eg/adrv2crr_xmicrowave/system_bd.tcl index d4b502e7f4a..11259d2ca99 100755 --- a/projects/adrv9009zu11eg/adrv2crr_xmicrowave/system_bd.tcl +++ b/projects/adrv9009zu11eg/adrv2crr_xmicrowave/system_bd.tcl @@ -7,13 +7,21 @@ source ../common/adrv9009zu11eg_bd.tcl source ../common/adrv2crr_fmc_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - 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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +RX_OS:M=$ad_project_params(RX_OS_JESD_M)\ +L=$ad_project_params(RX_OS_JESD_L)\ +S=$ad_project_params(RX_OS_JESD_S)" + +sysid_gen_sys_init_file $sys_cstring # iic diff --git a/projects/adrv9361z7035/ccbob_cmos/system_bd.tcl b/projects/adrv9361z7035/ccbob_cmos/system_bd.tcl index 77fe8a1b199..1d6445db0e8 100644 --- a/projects/adrv9361z7035/ccbob_cmos/system_bd.tcl +++ b/projects/adrv9361z7035/ccbob_cmos/system_bd.tcl @@ -14,11 +14,9 @@ cfg_ad9361_interface CMOS ad_ip_parameter axi_ad9361 CONFIG.ADC_INIT_DELAY 29 -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/adrv9361z7035/ccbob_lvds/system_bd.tcl b/projects/adrv9361z7035/ccbob_lvds/system_bd.tcl index 59b98781a58..707370a23f0 100644 --- a/projects/adrv9361z7035/ccbob_lvds/system_bd.tcl +++ b/projects/adrv9361z7035/ccbob_lvds/system_bd.tcl @@ -11,11 +11,9 @@ cfg_ad9361_interface LVDS ad_ip_parameter axi_ad9361 CONFIG.ADC_INIT_DELAY 29 -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/adrv9361z7035/ccfmc_lvds/system_bd.tcl b/projects/adrv9361z7035/ccfmc_lvds/system_bd.tcl index 7634b52d1ea..79b7541cd95 100644 --- a/projects/adrv9361z7035/ccfmc_lvds/system_bd.tcl +++ b/projects/adrv9361z7035/ccfmc_lvds/system_bd.tcl @@ -14,11 +14,9 @@ ad_connect sys_cpu_clk sys_cpu_clk_out ad_ip_parameter axi_ad9361 CONFIG.ADC_INIT_DELAY 29 -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/adrv9361z7035/ccpackrf_lvds/system_bd.tcl b/projects/adrv9361z7035/ccpackrf_lvds/system_bd.tcl index 371e7ae1dc8..e500343501c 100644 --- a/projects/adrv9361z7035/ccpackrf_lvds/system_bd.tcl +++ b/projects/adrv9361z7035/ccpackrf_lvds/system_bd.tcl @@ -14,11 +14,9 @@ ad_connect sys_cpu_clk sys_cpu_clk_out set_property CONFIG.ADC_INIT_DELAY 29 [get_bd_cells axi_ad9361] -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/adrv9364z7020/ccbob_cmos/system_bd.tcl b/projects/adrv9364z7020/ccbob_cmos/system_bd.tcl index 019b45f80bc..1ddd0a05463 100644 --- a/projects/adrv9364z7020/ccbob_cmos/system_bd.tcl +++ b/projects/adrv9364z7020/ccbob_cmos/system_bd.tcl @@ -14,11 +14,9 @@ cfg_ad9361_interface CMOS set_property CONFIG.ADC_INIT_DELAY 30 [get_bd_cells axi_ad9361] -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/adrv9364z7020/ccbob_lvds/system_bd.tcl b/projects/adrv9364z7020/ccbob_lvds/system_bd.tcl index 4b6cd253d8f..8fce540a156 100644 --- a/projects/adrv9364z7020/ccbob_lvds/system_bd.tcl +++ b/projects/adrv9364z7020/ccbob_lvds/system_bd.tcl @@ -11,11 +11,9 @@ cfg_ad9361_interface LVDS set_property CONFIG.ADC_INIT_DELAY 30 [get_bd_cells axi_ad9361] -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/adrv9364z7020/ccpackrf_lvds/system_bd.tcl b/projects/adrv9364z7020/ccpackrf_lvds/system_bd.tcl index 8b258d954eb..8639a2356f3 100644 --- a/projects/adrv9364z7020/ccpackrf_lvds/system_bd.tcl +++ b/projects/adrv9364z7020/ccpackrf_lvds/system_bd.tcl @@ -14,11 +14,9 @@ ad_connect sys_cpu_clk sys_cpu_clk_out set_property CONFIG.ADC_INIT_DELAY 30 [get_bd_cells axi_ad9361] -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/adrv9371x/a10soc/system_qsys.tcl b/projects/adrv9371x/a10soc/system_qsys.tcl index 750f0e4d4ae..c38e0abf36c 100644 --- a/projects/adrv9371x/a10soc/system_qsys.tcl +++ b/projects/adrv9371x/a10soc/system_qsys.tcl @@ -17,9 +17,7 @@ if [info exists ad_project_dir] { #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; - +sysid_gen_sys_init_file diff --git a/projects/adrv9371x/kcu105/system_bd.tcl b/projects/adrv9371x/kcu105/system_bd.tcl index 2f94a9ad939..9908aa2e912 100644 --- a/projects/adrv9371x/kcu105/system_bd.tcl +++ b/projects/adrv9371x/kcu105/system_bd.tcl @@ -13,14 +13,23 @@ source $ad_hdl_dir/projects/common/kcu105/kcu105_system_mig.tcl source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +RX_OS:M=$ad_project_params(RX_OS_JESD_M)\ +L=$ad_project_params(RX_OS_JESD_L)\ +S=$ad_project_params(RX_OS_JESD_S)\ +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring ad_ip_parameter axi_ddr_cntrl CONFIG.ADDN_UI_CLKOUT3_FREQ_HZ 200 @@ -31,4 +40,3 @@ ad_ip_parameter util_ad9371_xcvr CONFIG.QPLL_REFCLK_DIV 1 ad_ip_parameter util_ad9371_xcvr CONFIG.CPLL_CFG0 0x67f8 ad_ip_parameter util_ad9371_xcvr CONFIG.CPLL_CFG1 0xa4ac ad_ip_parameter util_ad9371_xcvr CONFIG.CPLL_CFG2 0x0007 - diff --git a/projects/adrv9371x/zc706/system_bd.tcl b/projects/adrv9371x/zc706/system_bd.tcl index 890f170c05d..0283cb8d02a 100644 --- a/projects/adrv9371x/zc706/system_bd.tcl +++ b/projects/adrv9371x/zc706/system_bd.tcl @@ -4,20 +4,29 @@ ############################################################################### set dac_fifo_address_width 10 + source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source $ad_hdl_dir/projects/common/zc706/zc706_plddr3_dacfifo_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +RX_OS:M=$ad_project_params(RX_OS_JESD_M)\ +L=$ad_project_params(RX_OS_JESD_L)\ +S=$ad_project_params(RX_OS_JESD_S) +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring ad_ip_parameter sys_ps7 CONFIG.PCW_FPGA2_PERIPHERAL_FREQMHZ 200 source ../common/adrv9371x_bd.tcl - diff --git a/projects/adrv9371x/zcu102/system_bd.tcl b/projects/adrv9371x/zcu102/system_bd.tcl index 2596f9f7c46..963fedecf6e 100644 --- a/projects/adrv9371x/zcu102/system_bd.tcl +++ b/projects/adrv9371x/zcu102/system_bd.tcl @@ -12,14 +12,23 @@ source $ad_hdl_dir/projects/common/zcu102/zcu102_system_bd.tcl source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +RX_OS:M=$ad_project_params(RX_OS_JESD_M)\ +L=$ad_project_params(RX_OS_JESD_L)\ +S=$ad_project_params(RX_OS_JESD_S)\ +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring ad_ip_parameter sys_ps8 CONFIG.PSU__FPGA_PL2_ENABLE 1 ad_ip_parameter sys_ps8 CONFIG.PSU__CRL_APB__PL2_REF_CTRL__SRCSEL {IOPLL} diff --git a/projects/adv7511/zc702/system_bd.tcl b/projects/adv7511/zc702/system_bd.tcl index 98450756862..c3ff34b94c2 100644 --- a/projects/adv7511/zc702/system_bd.tcl +++ b/projects/adv7511/zc702/system_bd.tcl @@ -6,11 +6,9 @@ source $ad_hdl_dir/projects/common/zc702/zc702_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/adv7511/zc706/system_bd.tcl b/projects/adv7511/zc706/system_bd.tcl index 0bb42651903..f2d84d99537 100644 --- a/projects/adv7511/zc706/system_bd.tcl +++ b/projects/adv7511/zc706/system_bd.tcl @@ -6,11 +6,9 @@ source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/adv7511/zed/system_bd.tcl b/projects/adv7511/zed/system_bd.tcl index c0bd6ef33a3..696846569de 100644 --- a/projects/adv7511/zed/system_bd.tcl +++ b/projects/adv7511/zed/system_bd.tcl @@ -6,12 +6,9 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file - diff --git a/projects/adv7513/de10nano/system_qsys.tcl b/projects/adv7513/de10nano/system_qsys.tcl index 913edc170ef..2e3068677cd 100644 --- a/projects/adv7513/de10nano/system_qsys.tcl +++ b/projects/adv7513/de10nano/system_qsys.tcl @@ -8,9 +8,8 @@ source $ad_hdl_dir/projects/common/de10nano/de10nano_system_qsys.tcl #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +sysid_gen_sys_init_file diff --git a/projects/arradio/c5soc/system_qsys.tcl b/projects/arradio/c5soc/system_qsys.tcl index d9cf12b6dba..a3690b6d2d4 100644 --- a/projects/arradio/c5soc/system_qsys.tcl +++ b/projects/arradio/c5soc/system_qsys.tcl @@ -14,9 +14,7 @@ if [info exists ad_project_dir] { #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; - +sysid_gen_sys_init_file diff --git a/projects/cn0363/zed/system_bd.tcl b/projects/cn0363/zed/system_bd.tcl index d5dd27e6ca3..7c9c8795337 100644 --- a/projects/cn0363/zed/system_bd.tcl +++ b/projects/cn0363/zed/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source ../common/cn0363_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/cn0501/coraz7s/system_bd.tcl b/projects/cn0501/coraz7s/system_bd.tcl index fcad89e104f..a4794ea4349 100644 --- a/projects/cn0501/coraz7s/system_bd.tcl +++ b/projects/cn0501/coraz7s/system_bd.tcl @@ -7,12 +7,11 @@ source $ad_hdl_dir/projects/common/coraz7s/coraz7s_system_bd.tcl source ../common/cn0501_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/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/cn0506/a10soc/system_qsys.tcl b/projects/cn0506/a10soc/system_qsys.tcl index 7aeeaa2314c..ee2c76905ed 100644 --- a/projects/cn0506/a10soc/system_qsys.tcl +++ b/projects/cn0506/a10soc/system_qsys.tcl @@ -58,7 +58,7 @@ add_connection sys_clk.clk sys_hps.emac_ptp_ref_clock #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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 "MII" diff --git a/projects/cn0506/zc706/system_bd.tcl b/projects/cn0506/zc706/system_bd.tcl index 0f070613b1b..202e5a9ec05 100644 --- a/projects/cn0506/zc706/system_bd.tcl +++ b/projects/cn0506/zc706/system_bd.tcl @@ -116,12 +116,11 @@ switch $INTF_CFG { source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set INTF_CFG $::env(INTF_CFG) + set sys_cstring "$INTF_CFG" + sysid_gen_sys_init_file $sys_cstring diff --git a/projects/cn0506/zcu102/system_bd.tcl b/projects/cn0506/zcu102/system_bd.tcl index 46ed4c515ab..c32878e008b 100644 --- a/projects/cn0506/zcu102/system_bd.tcl +++ b/projects/cn0506/zcu102/system_bd.tcl @@ -124,18 +124,17 @@ switch $INTF_CFG { ad_connect proc_sys_reset_eth1/slowest_sync_clk ref_clk_50_b ad_connect proc_sys_reset_eth1/ext_reset_in sys_rstgen/peripheral_aresetn ad_connect proc_sys_reset_eth1/peripheral_reset reset_b - ad_connect proc_sys_reset_eth1/peripheral_aresetn mii_to_rmii_1/reset_n + ad_connect proc_sys_reset_eth1/peripheral_aresetn mii_to_rmii_1/reset_n } } source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set INTF_CFG $::env(INTF_CFG) + set sys_cstring "$INTF_CFG" + sysid_gen_sys_init_file $sys_cstring diff --git a/projects/cn0506/zed/system_bd.tcl b/projects/cn0506/zed/system_bd.tcl index 90a6d6d5942..a06fd4b8fb2 100644 --- a/projects/cn0506/zed/system_bd.tcl +++ b/projects/cn0506/zed/system_bd.tcl @@ -116,12 +116,11 @@ switch $INTF_CFG { source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set INTF_CFG $::env(INTF_CFG) + set sys_cstring "$INTF_CFG" + sysid_gen_sys_init_file $sys_cstring diff --git a/projects/cn0540/coraz7s/system_bd.tcl b/projects/cn0540/coraz7s/system_bd.tcl index 47438370005..2c0cb7a94c1 100755 --- a/projects/cn0540/coraz7s/system_bd.tcl +++ b/projects/cn0540/coraz7s/system_bd.tcl @@ -6,11 +6,9 @@ source $ad_hdl_dir/projects/common/coraz7s/coraz7s_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file @@ -18,4 +16,3 @@ sysid_gen_sys_init_file set sys_dma_clk [get_bd_nets sys_dma_clk] source ../common/cn0540_bd.tcl - diff --git a/projects/cn0540/de10nano/system_qsys.tcl b/projects/cn0540/de10nano/system_qsys.tcl index ce1fe79ef18..217ab947bac 100755 --- a/projects/cn0540/de10nano/system_qsys.tcl +++ b/projects/cn0540/de10nano/system_qsys.tcl @@ -14,8 +14,7 @@ if [info exists ad_project_dir] { #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +sysid_gen_sys_init_file diff --git a/projects/cn0561/coraz7s/system_bd.tcl b/projects/cn0561/coraz7s/system_bd.tcl index c0d0fab0bc2..f1b256fb832 100644 --- a/projects/cn0561/coraz7s/system_bd.tcl +++ b/projects/cn0561/coraz7s/system_bd.tcl @@ -11,11 +11,9 @@ adi_project_files cn0561_coraz7s [list \ "$ad_hdl_dir/library/util_cdc/sync_bits.v" \ ] -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/cn0561/de10nano/system_qsys.tcl b/projects/cn0561/de10nano/system_qsys.tcl index 42b40d3592c..95e64630f83 100644 --- a/projects/cn0561/de10nano/system_qsys.tcl +++ b/projects/cn0561/de10nano/system_qsys.tcl @@ -9,8 +9,7 @@ source ../common/cn0561_qsys.tcl #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +sysid_gen_sys_init_file diff --git a/projects/cn0561/zed/system_bd.tcl b/projects/cn0561/zed/system_bd.tcl index e43525f44a6..5526c1693eb 100755 --- a/projects/cn0561/zed/system_bd.tcl +++ b/projects/cn0561/zed/system_bd.tcl @@ -6,11 +6,9 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 adi_project_files cn0561_fmc_zed [list \ diff --git a/projects/cn0577/zed/system_bd.tcl b/projects/cn0577/zed/system_bd.tcl index 9aab6abda40..f259d8efcb0 100644 --- a/projects/cn0577/zed/system_bd.tcl +++ b/projects/cn0577/zed/system_bd.tcl @@ -10,11 +10,11 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl source ../common/cn0577_bd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "sys rom custom string placeholder" + +set sys_cstring "TWO_LANES=$two_lanes" + sysid_gen_sys_init_file $sys_cstring diff --git a/projects/cn0579/coraz7s/system_bd.tcl b/projects/cn0579/coraz7s/system_bd.tcl index 17234204382..87430769405 100644 --- a/projects/cn0579/coraz7s/system_bd.tcl +++ b/projects/cn0579/coraz7s/system_bd.tcl @@ -7,11 +7,11 @@ source $ad_hdl_dir/projects/common/coraz7s/coraz7s_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.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.PATH_TO_FILE "$mem_init_sys_file_path/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 source ../common/cn0579_bd.tcl diff --git a/projects/cn0579/de10nano/system_qsys.tcl b/projects/cn0579/de10nano/system_qsys.tcl index a11a19bd0f4..a3678724177 100644 --- a/projects/cn0579/de10nano/system_qsys.tcl +++ b/projects/cn0579/de10nano/system_qsys.tcl @@ -16,10 +16,8 @@ if [info exists ad_project_dir] { set_instance_parameter_value sys_spi {clockPolarity} {0} #system ID - set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +sysid_gen_sys_init_file diff --git a/projects/common/a10gx/system_qsys.tcl b/projects/common/a10gx/system_qsys.tcl index 303ec281f36..b15cd827f79 100755 --- a/projects/common/a10gx/system_qsys.tcl +++ b/projects/common/a10gx/system_qsys.tcl @@ -7,10 +7,8 @@ source $ad_hdl_dir/projects/scripts/adi_pd.tcl source $ad_hdl_dir/projects/common/a10gx/a10gx_system_qsys.tcl #system ID - set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +sysid_gen_sys_init_file diff --git a/projects/common/a10soc/system_qsys.tcl b/projects/common/a10soc/system_qsys.tcl index bc71cf78650..06ed2553e06 100755 --- a/projects/common/a10soc/system_qsys.tcl +++ b/projects/common/a10soc/system_qsys.tcl @@ -8,8 +8,7 @@ source $ad_hdl_dir/projects/common/a10soc/a10soc_system_qsys.tcl #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +sysid_gen_sys_init_file diff --git a/projects/common/ac701/system_bd.tcl b/projects/common/ac701/system_bd.tcl index 4f7065e9ba3..ee6171e7928 100755 --- a/projects/common/ac701/system_bd.tcl +++ b/projects/common/ac701/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/ac701/ac701_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/c5soc/system_qsys.tcl b/projects/common/c5soc/system_qsys.tcl index aff7c4683de..ed989dd59b7 100755 --- a/projects/common/c5soc/system_qsys.tcl +++ b/projects/common/c5soc/system_qsys.tcl @@ -8,8 +8,7 @@ source $ad_hdl_dir/projects/common/c5soc/c5soc_system_qsys.tcl #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +sysid_gen_sys_init_file diff --git a/projects/common/de10nano/system_qsys.tcl b/projects/common/de10nano/system_qsys.tcl index 688d1088bcc..11ecb014fc6 100755 --- a/projects/common/de10nano/system_qsys.tcl +++ b/projects/common/de10nano/system_qsys.tcl @@ -8,8 +8,7 @@ source $ad_hdl_dir/projects/common/de10nano/de10nano_system_qsys.tcl #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +sysid_gen_sys_init_file diff --git a/projects/common/kc705/system_bd.tcl b/projects/common/kc705/system_bd.tcl index d0d107a64c7..064ca17add1 100755 --- a/projects/common/kc705/system_bd.tcl +++ b/projects/common/kc705/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/kc705/kc705_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/kcu105/system_bd.tcl b/projects/common/kcu105/system_bd.tcl index 03c8447cc71..3d0872daccf 100755 --- a/projects/common/kcu105/system_bd.tcl +++ b/projects/common/kcu105/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/kcu105/kcu105_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/kv260/system_bd.tcl b/projects/common/kv260/system_bd.tcl index 4be600477bf..5b40346547a 100644 --- a/projects/common/kv260/system_bd.tcl +++ b/projects/common/kv260/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/kv260/kv260_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/vc707/system_bd.tcl b/projects/common/vc707/system_bd.tcl index e672ab3ccfb..dd43df543a2 100755 --- a/projects/common/vc707/system_bd.tcl +++ b/projects/common/vc707/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/vc707/vc707_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/vc709/system_bd.tcl b/projects/common/vc709/system_bd.tcl index 4b279997e6a..0e13eb85477 100755 --- a/projects/common/vc709/system_bd.tcl +++ b/projects/common/vc709/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/vc709/vc709_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/vck190/system_bd.tcl b/projects/common/vck190/system_bd.tcl index 8ede4a9791f..bdcd594302d 100755 --- a/projects/common/vck190/system_bd.tcl +++ b/projects/common/vck190/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/vck190/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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/vcu118/system_bd.tcl b/projects/common/vcu118/system_bd.tcl index 12b2a2b8d51..c3dc81c7f82 100755 --- a/projects/common/vcu118/system_bd.tcl +++ b/projects/common/vcu118/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/vcu118/vcu118_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/vcu128/system_bd.tcl b/projects/common/vcu128/system_bd.tcl index 81e8704fb39..5279c9d95c6 100755 --- a/projects/common/vcu128/system_bd.tcl +++ b/projects/common/vcu128/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/vcu128/vcu128_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/vmk180/system_bd.tcl b/projects/common/vmk180/system_bd.tcl index 43db6ae5487..b4d6b5b2c7a 100755 --- a/projects/common/vmk180/system_bd.tcl +++ b/projects/common/vmk180/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/vmk180/vmk180_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/zc702/system_bd.tcl b/projects/common/zc702/system_bd.tcl index a810ca953a8..3cc5b744e93 100755 --- a/projects/common/zc702/system_bd.tcl +++ b/projects/common/zc702/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/zc702/zc702_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/zc706/system_bd.tcl b/projects/common/zc706/system_bd.tcl index d0044185142..6c9021c36f7 100755 --- a/projects/common/zc706/system_bd.tcl +++ b/projects/common/zc706/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/zc706/zc706_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/zcu102/system_bd.tcl b/projects/common/zcu102/system_bd.tcl index 91ce660481d..2e666889cd3 100755 --- a/projects/common/zcu102/system_bd.tcl +++ b/projects/common/zcu102/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/zcu102/zcu102_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/common/zed/system_bd.tcl b/projects/common/zed/system_bd.tcl index 990d5faf93f..0c2cba04955 100755 --- a/projects/common/zed/system_bd.tcl +++ b/projects/common/zed/system_bd.tcl @@ -8,7 +8,7 @@ source $ad_hdl_dir/projects/common/zed/zed_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.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/dac_fmc_ebz/a10soc/system_qsys.tcl b/projects/dac_fmc_ebz/a10soc/system_qsys.tcl index 3761f4fd989..cd3312a8143 100644 --- a/projects/dac_fmc_ebz/a10soc/system_qsys.tcl +++ b/projects/dac_fmc_ebz/a10soc/system_qsys.tcl @@ -17,9 +17,13 @@ if [info exists ad_project_dir] { #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +set sys_cstring "JESD:L=$ad_project_params(JESD_L)\ +MODE=$ad_project_params(MODE)\ +DEVICE=$ad_project_params(DEVICE)\ +DEVICE_CODE=$ad_project_params(DEVICE_CODE)\ +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" +sysid_gen_sys_init_file sys_cstring diff --git a/projects/dac_fmc_ebz/vcu118/system_bd.tcl b/projects/dac_fmc_ebz/vcu118/system_bd.tcl index aa0ebc48748..a3fd9f2593e 100755 --- a/projects/dac_fmc_ebz/vcu118/system_bd.tcl +++ b/projects/dac_fmc_ebz/vcu118/system_bd.tcl @@ -4,20 +4,29 @@ ############################################################################### set dac_fifo_address_width 14 + source $ad_hdl_dir/projects/common/vcu118/vcu118_system_bd.tcl source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl source ../common/dac_fmc_ebz_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 + set ADI_DAC_DEVICE $::env(ADI_DAC_DEVICE) set ADI_DAC_MODE $::env(ADI_DAC_MODE) -set sys_cstring "$ADI_DAC_DEVICE - $ADI_DAC_MODE" +set sys_cstring "JESD:M=$ad_project_params(JESD_M)\ +L=$ad_project_params(JESD_L)\ +S=$ad_project_params(JESD_S)\ +NP=$ad_project_params(JESD_NP)\ +LINKS=$ad_project_params(NUM_LINKS)\ +DEVICE_CODE=$ad_project_params(DEVICE_CODE)\ +DAC_DEVICE=$ADI_DAC_DEVICE\ +DAC_MODE=$ADI_DAC_MODE\ +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" + sysid_gen_sys_init_file $sys_cstring ad_ip_parameter dac_jesd204_link/tx CONFIG.SYSREF_IOB false diff --git a/projects/dac_fmc_ebz/zc706/system_bd.tcl b/projects/dac_fmc_ebz/zc706/system_bd.tcl index 668a067b284..7ef149e63c4 100644 --- a/projects/dac_fmc_ebz/zc706/system_bd.tcl +++ b/projects/dac_fmc_ebz/zc706/system_bd.tcl @@ -10,15 +10,23 @@ source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl source ../common/dac_fmc_ebz_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 + set ADI_DAC_DEVICE $::env(ADI_DAC_DEVICE) set ADI_DAC_MODE $::env(ADI_DAC_MODE) -set sys_cstring "$ADI_DAC_DEVICE - $ADI_DAC_MODE" +set sys_cstring "JESD:M=$ad_project_params(JESD_M)\ +L=$ad_project_params(JESD_L)\ +S=$ad_project_params(JESD_S)\ +NP=$ad_project_params(JESD_NP)\ +LINKS=$ad_project_params(NUM_LINKS)\ +DEVICE_CODE=$ad_project_params(DEVICE_CODE)\ +DAC_DEVICE=$ADI_DAC_DEVICE\ +DAC_MODE=$ADI_DAC_MODE\ +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" + sysid_gen_sys_init_file $sys_cstring ad_ip_parameter dac_jesd204_link/tx CONFIG.SYSREF_IOB false diff --git a/projects/dac_fmc_ebz/zcu102/system_bd.tcl b/projects/dac_fmc_ebz/zcu102/system_bd.tcl index b981c99a529..cd69d4fcad0 100644 --- a/projects/dac_fmc_ebz/zcu102/system_bd.tcl +++ b/projects/dac_fmc_ebz/zcu102/system_bd.tcl @@ -4,6 +4,7 @@ ############################################################################### set dac_fifo_address_width 13 + source $ad_hdl_dir/projects/common/zcu102/zcu102_system_bd.tcl source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl source ../common/dac_fmc_ebz_bd.tcl @@ -31,14 +32,21 @@ ad_ip_parameter util_dac_jesd204_xcvr CONFIG.QPLL_LPF 0x31D ad_ip_parameter dac_jesd204_link/tx CONFIG.SYSREF_IOB false -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 + set ADI_DAC_DEVICE $::env(ADI_DAC_DEVICE) set ADI_DAC_MODE $::env(ADI_DAC_MODE) -set sys_cstring "$ADI_DAC_DEVICE - $ADI_DAC_MODE" -sysid_gen_sys_init_file $sys_cstring +set sys_cstring "JESD:M=$ad_project_params(JESD_M)\ +L=$ad_project_params(JESD_L)\ +S=$ad_project_params(JESD_S)\ +NP=$ad_project_params(JESD_NP)\ +LINKS=$ad_project_params(NUM_LINKS)\ +DEVICE_CODE=$ad_project_params(DEVICE_CODE)\ +DAC_DEVICE=$ADI_DAC_DEVICE\ +DAC_MODE=$ADI_DAC_MODE\ +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/daq2/a10soc/system_qsys.tcl b/projects/daq2/a10soc/system_qsys.tcl index d01861afd05..f2881c2ae43 100644 --- a/projects/daq2/a10soc/system_qsys.tcl +++ b/projects/daq2/a10soc/system_qsys.tcl @@ -4,6 +4,7 @@ ############################################################################### set dac_fifo_address_width 10 + source $ad_hdl_dir/projects/scripts/adi_pd.tcl source $ad_hdl_dir/projects/common/a10soc/a10soc_system_qsys.tcl source $ad_hdl_dir/projects/common/a10soc/a10soc_plddr4_dacfifo_qsys.tcl @@ -16,9 +17,9 @@ if [info exists ad_project_dir] { #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +set sys_cstring "DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/daq2/kc705/system_bd.tcl b/projects/daq2/kc705/system_bd.tcl index f9fe32ff8a2..01b93914cc9 100644 --- a/projects/daq2/kc705/system_bd.tcl +++ b/projects/daq2/kc705/system_bd.tcl @@ -18,12 +18,20 @@ source $ad_hdl_dir/projects/common/kc705/kc705_system_bd.tcl source ../common/daq2_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "ADC_OFFLOAD_TYPE=$adc_offload_type\nDAC_OFFLOAD_TYPE=$dac_offload_type" +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +ADC_OFFLOAD:TYPE=$adc_offload_type\ +SIZE=$adc_offload_size\ +DAC_OFFLOAD:TYPE=$dac_offload_type\ +SIZE=$dac_offload_size" + sysid_gen_sys_init_file $sys_cstring diff --git a/projects/daq2/kcu105/system_bd.tcl b/projects/daq2/kcu105/system_bd.tcl index d64480408a7..a7f93d16a25 100644 --- a/projects/daq2/kcu105/system_bd.tcl +++ b/projects/daq2/kcu105/system_bd.tcl @@ -18,14 +18,22 @@ source $ad_hdl_dir/projects/common/kcu105/kcu105_system_bd.tcl source ../common/daq2_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "ADC_OFFLOAD_TYPE=$adc_offload_type\nDAC_OFFLOAD_TYPE=$dac_offload_type" +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +ADC_OFFLOAD:TYPE=$adc_offload_type\ +SIZE=$adc_offload_size\ +DAC_OFFLOAD:TYPE=$dac_offload_type\ +SIZE=$dac_offload_size" + sysid_gen_sys_init_file $sys_cstring ad_ip_parameter util_daq2_xcvr CONFIG.QPLL_FBDIV 20 diff --git a/projects/daq2/zc706/system_bd.tcl b/projects/daq2/zc706/system_bd.tcl index dbec6bfadb2..96fc6a05b62 100644 --- a/projects/daq2/zc706/system_bd.tcl +++ b/projects/daq2/zc706/system_bd.tcl @@ -65,11 +65,19 @@ if {$adc_offload_type || $dac_offload_type} { # System ID ################################################################################ -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - 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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "ADC_OFFLOAD_TYPE=$adc_offload_type\nDAC_OFFLOAD_TYPE=$dac_offload_type" +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +ADC_OFFLOAD:TYPE=$adc_offload_type\ +SIZE=$adc_offload_size\ +DAC_OFFLOAD:TYPE=$dac_offload_type\ +SIZE=$dac_offload_size" + sysid_gen_sys_init_file $sys_cstring diff --git a/projects/daq2/zcu102/system_bd.tcl b/projects/daq2/zcu102/system_bd.tcl index 3f18d34e9b1..01cc8b58221 100644 --- a/projects/daq2/zcu102/system_bd.tcl +++ b/projects/daq2/zcu102/system_bd.tcl @@ -18,14 +18,22 @@ source $ad_hdl_dir/projects/common/zcu102/zcu102_system_bd.tcl source ../common/daq2_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "ADC_OFFLOAD_TYPE=$adc_offload_type\nDAC_OFFLOAD_TYPE=$dac_offload_type" +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +ADC_OFFLOAD:TYPE=$adc_offload_type\ +SIZE=$adc_offload_size\ +DAC_OFFLOAD:TYPE=$dac_offload_type\ +SIZE=$dac_offload_size" + sysid_gen_sys_init_file $sys_cstring ad_ip_parameter util_daq2_xcvr CONFIG.QPLL_FBDIV 20 diff --git a/projects/daq3/kcu105/system_bd.tcl b/projects/daq3/kcu105/system_bd.tcl index 079b422e63d..843c4d4d536 100644 --- a/projects/daq3/kcu105/system_bd.tcl +++ b/projects/daq3/kcu105/system_bd.tcl @@ -17,14 +17,21 @@ source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl source ../common/daq3_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +ADC_FIFO_ADDR_WIDTH=$adc_fifo_address_width\ +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring ad_ip_parameter util_daq3_xcvr CONFIG.QPLL_FBDIV 20 ad_ip_parameter util_daq3_xcvr CONFIG.QPLL_REFCLK_DIV 1 diff --git a/projects/daq3/vcu118/system_bd.tcl b/projects/daq3/vcu118/system_bd.tcl index c5f280c6785..d676cc92558 100644 --- a/projects/daq3/vcu118/system_bd.tcl +++ b/projects/daq3/vcu118/system_bd.tcl @@ -9,21 +9,27 @@ set adc_fifo_address_width 16 ## FIFO depth is 4Mb - 250k samples set dac_fifo_address_width 15 - source $ad_hdl_dir/projects/common/vcu118/vcu118_system_bd.tcl source $ad_hdl_dir/projects/common/xilinx/adcfifo_bd.tcl source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl source ../common/daq3_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S) +ADC_FIFO_ADDR_WIDTH=$adc_fifo_address_width\ +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring ad_ip_parameter util_daq3_xcvr CONFIG.QPLL_FBDIV 20 ad_ip_parameter util_daq3_xcvr CONFIG.QPLL_REFCLK_DIV 1 diff --git a/projects/daq3/zc706/system_bd.tcl b/projects/daq3/zc706/system_bd.tcl index b1c7c0ad8bb..251c868ec11 100644 --- a/projects/daq3/zc706/system_bd.tcl +++ b/projects/daq3/zc706/system_bd.tcl @@ -17,11 +17,18 @@ source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl source ../common/daq3_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S) +ADC_FIFO_ADDR_WIDTH=$adc_fifo_address_width\ +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/daq3/zcu102/system_bd.tcl b/projects/daq3/zcu102/system_bd.tcl index 5a388015e13..77564466668 100644 --- a/projects/daq3/zcu102/system_bd.tcl +++ b/projects/daq3/zcu102/system_bd.tcl @@ -13,14 +13,20 @@ source $ad_hdl_dir/projects/common/xilinx/dacfifo_bd.tcl source ../common/daq3_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S) +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring # configure the CPLL's to support 12.33Gbps ad_ip_parameter util_daq3_xcvr CONFIG.CPLL_CFG0 0x03fe diff --git a/projects/fmcadc2/vc707/system_bd.tcl b/projects/fmcadc2/vc707/system_bd.tcl index cdc227b886a..d5bc71c361f 100644 --- a/projects/fmcadc2/vc707/system_bd.tcl +++ b/projects/fmcadc2/vc707/system_bd.tcl @@ -13,11 +13,15 @@ source $ad_hdl_dir/projects/common/xilinx/adcfifo_bd.tcl source ../common/fmcadc2_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP) +ADC_FIFO_ADDR_WIDTH=$adc_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/fmcadc2/zc706/system_bd.tcl b/projects/fmcadc2/zc706/system_bd.tcl index 7eae6e2eb6e..73fdc349723 100644 --- a/projects/fmcadc2/zc706/system_bd.tcl +++ b/projects/fmcadc2/zc706/system_bd.tcl @@ -4,16 +4,21 @@ ############################################################################### set adc_fifo_address_width 18 + source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source $ad_hdl_dir/projects/common/zc706/zc706_plddr3_adcfifo_bd.tcl source ../common/fmcadc2_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP) +ADC_FIFO_ADDR_WIDTH=$adc_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/fmcadc5/vc707/system_bd.tcl b/projects/fmcadc5/vc707/system_bd.tcl index 49dbd044211..9de8cff97bb 100644 --- a/projects/fmcadc5/vc707/system_bd.tcl +++ b/projects/fmcadc5/vc707/system_bd.tcl @@ -13,14 +13,14 @@ source $ad_hdl_dir/projects/common/xilinx/adcfifo_bd.tcl source ../common/fmcadc5_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "ADC_FIFO_ADDR_WIDTH=$adc_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring # ila diff --git a/projects/fmcjesdadc1/kc705/system_bd.tcl b/projects/fmcjesdadc1/kc705/system_bd.tcl index 89b740c9ca0..89bf6384090 100644 --- a/projects/fmcjesdadc1/kc705/system_bd.tcl +++ b/projects/fmcjesdadc1/kc705/system_bd.tcl @@ -7,15 +7,17 @@ source $ad_hdl_dir/projects/common/kc705/kc705_system_bd.tcl source ../common/fmcjesdadc1_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP)" + +sysid_gen_sys_init_file $sys_cstring ad_ip_parameter axi_ad9250_dma CONFIG.DMA_DATA_WIDTH_DEST 512 ad_ip_parameter axi_ad9250_dma CONFIG.FIFO_SIZE 32 - diff --git a/projects/fmcjesdadc1/vc707/system_bd.tcl b/projects/fmcjesdadc1/vc707/system_bd.tcl index db3dbfff880..f4bb5080439 100644 --- a/projects/fmcjesdadc1/vc707/system_bd.tcl +++ b/projects/fmcjesdadc1/vc707/system_bd.tcl @@ -7,14 +7,17 @@ source $ad_hdl_dir/projects/common/vc707/vc707_system_bd.tcl source ../common/fmcjesdadc1_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP)" + +sysid_gen_sys_init_file $sys_cstring ad_ip_parameter axi_ad9250_dma CONFIG.DMA_DATA_WIDTH_DEST 256 ad_ip_parameter axi_ad9250_dma CONFIG.FIFO_SIZE 32 diff --git a/projects/fmcjesdadc1/zc706/system_bd.tcl b/projects/fmcjesdadc1/zc706/system_bd.tcl index 8ac9640f808..d21bac4a44f 100644 --- a/projects/fmcjesdadc1/zc706/system_bd.tcl +++ b/projects/fmcjesdadc1/zc706/system_bd.tcl @@ -7,11 +7,14 @@ source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source ../common/fmcjesdadc1_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +NP=$ad_project_params(RX_JESD_NP)" + +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/fmcomms11/zc706/system_bd.tcl b/projects/fmcomms11/zc706/system_bd.tcl index 14a76aec9df..e59e6c89545 100644 --- a/projects/fmcomms11/zc706/system_bd.tcl +++ b/projects/fmcomms11/zc706/system_bd.tcl @@ -22,11 +22,12 @@ set adc_fifo_address_width 15 source ../common/fmcomms11_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width\ +ADC_FIFO_ADDR_WIDTH=$adc_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/fmcomms2/kc705/system_bd.tcl b/projects/fmcomms2/kc705/system_bd.tcl index fbe6c55d8ca..f640983a6ed 100644 --- a/projects/fmcomms2/kc705/system_bd.tcl +++ b/projects/fmcomms2/kc705/system_bd.tcl @@ -7,14 +7,11 @@ source $ad_hdl_dir/projects/common/kc705/kc705_system_bd.tcl source ../common/fmcomms2_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file ad_ip_parameter axi_ad9361 CONFIG.ADC_INIT_DELAY 31 - diff --git a/projects/fmcomms2/kcu105/system_bd.tcl b/projects/fmcomms2/kcu105/system_bd.tcl index 3e932bdaf9e..bbd0925e3e5 100644 --- a/projects/fmcomms2/kcu105/system_bd.tcl +++ b/projects/fmcomms2/kcu105/system_bd.tcl @@ -8,11 +8,9 @@ source $ad_hdl_dir/projects/common/kcu105/kcu105_system_mig.tcl source ../common/fmcomms2_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file @@ -20,4 +18,3 @@ sysid_gen_sys_init_file ad_ip_parameter util_ad9361_divclk CONFIG.SIM_DEVICE ULTRASCALE ad_ip_parameter axi_ad9361 CONFIG.ADC_INIT_DELAY 11 - diff --git a/projects/fmcomms2/vc707/system_bd.tcl b/projects/fmcomms2/vc707/system_bd.tcl index 3cb673bd0ec..1bd16552e49 100644 --- a/projects/fmcomms2/vc707/system_bd.tcl +++ b/projects/fmcomms2/vc707/system_bd.tcl @@ -7,14 +7,11 @@ source $ad_hdl_dir/projects/common/vc707/vc707_system_bd.tcl source ../common/fmcomms2_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file ad_ip_parameter axi_ad9361 CONFIG.ADC_INIT_DELAY 22 - diff --git a/projects/fmcomms2/zc702/system_bd.tcl b/projects/fmcomms2/zc702/system_bd.tcl index 197c575abf6..1c8654b5932 100644 --- a/projects/fmcomms2/zc702/system_bd.tcl +++ b/projects/fmcomms2/zc702/system_bd.tcl @@ -7,14 +7,11 @@ source $ad_hdl_dir/projects/common/zc702/zc702_system_bd.tcl source ../common/fmcomms2_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file ad_ip_parameter axi_ad9361 CONFIG.ADC_INIT_DELAY 23 - diff --git a/projects/fmcomms2/zc706/system_bd.tcl b/projects/fmcomms2/zc706/system_bd.tcl index 4e6496a4284..4b47926a93c 100644 --- a/projects/fmcomms2/zc706/system_bd.tcl +++ b/projects/fmcomms2/zc706/system_bd.tcl @@ -7,14 +7,11 @@ source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source ../common/fmcomms2_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file ad_ip_parameter axi_ad9361 CONFIG.ADC_INIT_DELAY 20 - diff --git a/projects/fmcomms2/zcu102/system_bd.tcl b/projects/fmcomms2/zcu102/system_bd.tcl index 1f3addccd00..379a41717ae 100644 --- a/projects/fmcomms2/zcu102/system_bd.tcl +++ b/projects/fmcomms2/zcu102/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/zcu102/zcu102_system_bd.tcl source ../common/fmcomms2_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file @@ -20,4 +18,3 @@ ad_ip_parameter util_ad9361_divclk CONFIG.SIM_DEVICE ULTRASCALE ad_ip_parameter axi_ad9361 CONFIG.ADC_INIT_DELAY 11 ad_ip_parameter axi_ad9361 CONFIG.DELAY_REFCLK_FREQUENCY 500 - diff --git a/projects/fmcomms2/zed/system_bd.tcl b/projects/fmcomms2/zed/system_bd.tcl index bb7ca20e8ac..715cfd1c30a 100644 --- a/projects/fmcomms2/zed/system_bd.tcl +++ b/projects/fmcomms2/zed/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source ../common/fmcomms2_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file @@ -19,4 +17,3 @@ sysid_gen_sys_init_file ad_ip_parameter axi_ad9361 CONFIG.ADC_INIT_DELAY 23 ad_ip_parameter axi_ad9361 CONFIG.TDD_DISABLE 1 - diff --git a/projects/fmcomms5/zc702/system_bd.tcl b/projects/fmcomms5/zc702/system_bd.tcl index f26297e40ae..bf7331036f9 100644 --- a/projects/fmcomms5/zc702/system_bd.tcl +++ b/projects/fmcomms5/zc702/system_bd.tcl @@ -6,11 +6,9 @@ source $ad_hdl_dir/projects/common/zc702/zc702_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file @@ -26,4 +24,3 @@ ad_ip_parameter axi_ad9361_0 CONFIG.ADC_INIT_DELAY 24 ad_ip_parameter axi_ad9361_1 CONFIG.ADC_INIT_DELAY 24 ad_ip_parameter axi_ad9361_adc_dma CONFIG.AXI_SLICE_DEST 1 ad_ip_parameter axi_ad9361_dac_dma CONFIG.AXI_SLICE_SRC 1 - diff --git a/projects/fmcomms5/zc706/system_bd.tcl b/projects/fmcomms5/zc706/system_bd.tcl index a0769d90ea0..b933970e3a5 100644 --- a/projects/fmcomms5/zc706/system_bd.tcl +++ b/projects/fmcomms5/zc706/system_bd.tcl @@ -6,11 +6,9 @@ source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file @@ -22,4 +20,3 @@ source ../common/fmcomms5_bd.tcl ad_ip_parameter axi_ad9361_0 CONFIG.ADC_INIT_DELAY 16 ad_ip_parameter axi_ad9361_1 CONFIG.ADC_INIT_DELAY 16 - diff --git a/projects/fmcomms5/zcu102/system_bd.tcl b/projects/fmcomms5/zcu102/system_bd.tcl index 66d82e7948d..7c9a6fabc70 100644 --- a/projects/fmcomms5/zcu102/system_bd.tcl +++ b/projects/fmcomms5/zcu102/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/zcu102/zcu102_system_bd.tcl source ../common/fmcomms5_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/fmcomms8/a10soc/system_qsys.tcl b/projects/fmcomms8/a10soc/system_qsys.tcl index 68b853a3d70..2e147b7f867 100755 --- a/projects/fmcomms8/a10soc/system_qsys.tcl +++ b/projects/fmcomms8/a10soc/system_qsys.tcl @@ -4,6 +4,7 @@ ############################################################################### set dac_fifo_address_width 16 + source $ad_hdl_dir/projects/scripts/adi_pd.tcl source $ad_hdl_dir/projects/common/a10soc/a10soc_system_qsys.tcl source $ad_hdl_dir/projects/common/a10soc/a10soc_plddr4_dacfifo_qsys.tcl @@ -16,10 +17,9 @@ if [info exists ad_project_dir] { #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "$mem_init_sys_file_path/mem_init_sys.txt" 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; +set sys_cstring "DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width"; +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/fmcomms8/zcu102/system_bd.tcl b/projects/fmcomms8/zcu102/system_bd.tcl index d6422435846..9897a2a70ee 100644 --- a/projects/fmcomms8/zcu102/system_bd.tcl +++ b/projects/fmcomms8/zcu102/system_bd.tcl @@ -10,14 +10,23 @@ source $ad_hdl_dir/projects/scripts/adi_pd.tcl ## FIFO depth is 8Mb - 500k samples set dac_fifo_address_width 16 -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "RX:M=$ad_project_params(RX_JESD_M)\ +L=$ad_project_params(RX_JESD_L)\ +S=$ad_project_params(RX_JESD_S)\ +TX:M=$ad_project_params(TX_JESD_M)\ +L=$ad_project_params(TX_JESD_L)\ +S=$ad_project_params(TX_JESD_S)\ +RX_OS:M=$ad_project_params(RX_OS_JESD_M)\ +L=$ad_project_params(RX_OS_JESD_L)\ +S=$ad_project_params(RX_OS_JESD_S)\ +DAC_FIFO_ADDR_WIDTH=$dac_fifo_address_width" + +sysid_gen_sys_init_file $sys_cstring source ../common/fmcomms8_bd.tcl ad_ip_parameter sys_ps8 CONFIG.PSU__CRL_APB__PL1_REF_CTRL__FREQMHZ 300 diff --git a/projects/imageon/zed/system_bd.tcl b/projects/imageon/zed/system_bd.tcl index fcfe8c1b694..95cfc92677d 100644 --- a/projects/imageon/zed/system_bd.tcl +++ b/projects/imageon/zed/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source ../common/imageon_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/jupiter_sdr/system_bd.tcl b/projects/jupiter_sdr/system_bd.tcl index 50280339d42..0845bf9d92e 100644 --- a/projects/jupiter_sdr/system_bd.tcl +++ b/projects/jupiter_sdr/system_bd.tcl @@ -600,11 +600,11 @@ ad_cpu_interrupt ps-12 mb-11 axi_adrv9001_rx2_dma/irq ad_cpu_interrupt ps-11 mb-6 axi_adrv9001_tx1_dma/irq ad_cpu_interrupt ps-10 mb-5 axi_adrv9001_tx2_dma/irq -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path" +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -sysid_gen_sys_init_file +set sys_cstring "DEVICE=$p_device" + +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/pulsar_adc_pmdz/coraz7s/system_bd.tcl b/projects/pulsar_adc_pmdz/coraz7s/system_bd.tcl index be70162f0eb..36bc70206cb 100644 --- a/projects/pulsar_adc_pmdz/coraz7s/system_bd.tcl +++ b/projects/pulsar_adc_pmdz/coraz7s/system_bd.tcl @@ -7,11 +7,9 @@ source $ad_hdl_dir/projects/common/coraz7s/coraz7s_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl source ../common/pulsar_adc_pmdz_bd.tcl -set mem_init_sys_path [get_env_param ADI_PROJECT_DIR ""]mem_init_sys.txt; - #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_path"; +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 sysid_gen_sys_init_file diff --git a/projects/scripts/adi_pd.tcl b/projects/scripts/adi_pd.tcl index e139d9f9e4d..a779b2ccbba 100644 --- a/projects/scripts/adi_pd.tcl +++ b/projects/scripts/adi_pd.tcl @@ -95,7 +95,7 @@ proc rev_by_string {str} { # \param[custom_string] - string input # -proc sysid_gen_sys_init_file {{custom_string {}}} { +proc sysid_gen_sys_init_file {{custom_string {}} {address_bits {9}}} { global project_name; if {[info exists project_name]} { @@ -169,7 +169,8 @@ proc sysid_gen_sys_init_file {{custom_string {}}} { puts "projname_string: $projname_string"; puts "projname_hex: $projname_hex"; - set custom_hex [hexstr_flip [stringtohex $custom_string 64]]; + set custom_string_length [expr max(64, ([string length $custom_string] + 3) / 4 * 4)] + set custom_hex [hexstr_flip [stringtohex $custom_string $custom_string_length]]; puts "custom_string: $custom_string"; puts "custom_hex: $custom_hex"; @@ -197,7 +198,8 @@ proc sysid_gen_sys_init_file {{custom_string {}}} { set comh_hex [format %0-[expr [expr $table_size - 2] * 8]s $comh_hex]; append comh_hex "00000000" [checksum8bit $comh_hex] "000000"; - set sys_mem_hex [format %0-[expr 512 * 8]s [concat $comh_hex$verh_hex$projname_hex$boardname_hex$custom_hex]]; + set memory_size [expr int(pow(2, $address_bits)) * 8] + set sys_mem_hex [format %0-${memory_size}s [concat $comh_hex$verh_hex$projname_hex$boardname_hex$custom_hex]]; if {[info exists ::env(ADI_PROJECT_DIR)]} { set mem_init_sys_file_path "$::env(ADI_PROJECT_DIR)mem_init_sys.txt"; diff --git a/projects/sidekiqz2/system_bd.tcl b/projects/sidekiqz2/system_bd.tcl index a57c53bce6d..f6066de5644 100755 --- a/projects/sidekiqz2/system_bd.tcl +++ b/projects/sidekiqz2/system_bd.tcl @@ -11,4 +11,3 @@ ad_ip_parameter sys_ps7 CONFIG.PCW_GPIO_EMIO_GPIO_IO 19 set_property LEFT 18 [get_bd_ports /gpio_i] set_property LEFT 18 [get_bd_ports /gpio_o] set_property LEFT 18 [get_bd_ports /gpio_t] - diff --git a/scripts/adi_env.tcl b/scripts/adi_env.tcl index d624228b234..e629cffbf83 100644 --- a/scripts/adi_env.tcl +++ b/scripts/adi_env.tcl @@ -5,6 +5,7 @@ # environment related stuff set ad_hdl_dir [file normalize [file join [file dirname [info script]] "../"]] +set mem_init_sys_file_path [pwd] if [info exists ::env(ADI_HDL_DIR)] { set ad_hdl_dir [file normalize $::env(ADI_HDL_DIR)] @@ -14,6 +15,10 @@ if [info exists ::env(ADI_GHDL_DIR)] { set ad_ghdl_dir [file normalize $::env(ADI_GHDL_DIR)] } +if [info exists $::env(ADI_PROJECT_DIR)] { + set mem_init_sys_file_path [file normalize [pwd]/$::env(ADI_PROJECT_DIR)] +} + # Define the supported tool version set required_vivado_version "2022.2" if {[info exists ::env(REQUIRED_VIVADO_VERSION)]} {