From 45ba5ccc89900b93f06f5ba0c9f954a52428fdad Mon Sep 17 00:00:00 2001 From: Bogdan Luncan Date: Mon, 31 Oct 2022 12:16:32 +0000 Subject: [PATCH] Added logging of make params to the sysid memory Signed-off-by: Bogdan Luncan --- projects/ad40xx_fmc/zed/system_bd.tcl | 9 +++++-- projects/ad4630_fmc/zed/system_bd.tcl | 5 +++- projects/ad469x_fmc/zed/system_bd.tcl | 7 ++++- projects/ad6676evb/vc707/system_bd.tcl | 3 ++- projects/ad6676evb/zc706/system_bd.tcl | 3 ++- projects/ad7134_fmc/zed/system_bd.tcl | 15 ++++++----- projects/ad738x_fmc/zed/system_bd.tcl | 18 ++++++++----- projects/ad7405_fmc/zed/system_bd.tcl | 18 ++++++++----- projects/ad7616_sdz/zc706/system_bd.tcl | 12 ++++++--- projects/ad7616_sdz/zed/system_bd.tcl | 12 ++++++--- .../ad9081_fmca_ebz/a10soc/system_qsys.tcl | 16 ++++++++++- projects/ad9081_fmca_ebz/vck190/system_bd.tcl | 17 +++++++++++- projects/ad9081_fmca_ebz/vcu118/system_bd.tcl | 17 +++++++++++- projects/ad9081_fmca_ebz/vcu128/system_bd.tcl | 25 ++++++++++++++--- projects/ad9081_fmca_ebz/zc706/system_bd.tcl | 15 ++++++++++- projects/ad9081_fmca_ebz/zcu102/system_bd.tcl | 23 +++++++++++++--- .../zcu102/system_bd.tcl | 25 ++++++++++++++--- projects/ad9083_evb/zcu102/system_bd.tcl | 7 ++--- projects/ad9083_vna/zcu102/system_bd.tcl | 7 ++--- projects/ad9695_fmc/zcu102/system_bd.tcl | 4 ++- .../ad_quadmxfe1_ebz/vcu118/system_bd.tcl | 27 ++++++++++++++++--- projects/adaq7980_sdz/zed/system_bd.tcl | 9 ++++--- projects/adrv9001/zc706/system_bd.tcl | 7 ++++- projects/adrv9001/zcu102/system_bd.tcl | 7 ++++- projects/adrv9001/zed/system_bd.tcl | 7 ++++- projects/adrv9009/zc706/system_bd.tcl | 14 +++++++--- projects/adrv9009/zcu102/system_bd.tcl | 11 +++++++- .../adrv9009zu11eg/adrv2crr_fmc/system_bd.tcl | 11 ++++++++ .../adrv2crr_fmcomms8/system_bd.tcl | 11 +++++++- .../adrv2crr_fmcxmwbr1/system_bd.tcl | 11 +++++++- .../adrv2crr_xmicrowave/system_bd.tcl | 11 +++++++- projects/adrv9371x/kcu105/system_bd.tcl | 11 +++++++- projects/adrv9371x/zc706/system_bd.tcl | 11 +++++++- projects/adrv9371x/zcu102/system_bd.tcl | 11 +++++++- projects/cn0561/coraz7s/system_bd.tcl | 18 ++++++++----- projects/cn0561/zed/system_bd.tcl | 22 ++++++++------- projects/dac_fmc_ebz/a10soc/system_qsys.tcl | 6 ++++- projects/dac_fmc_ebz/vcu118/system_bd.tcl | 9 ++++++- projects/dac_fmc_ebz/zc706/system_bd.tcl | 9 ++++++- projects/dac_fmc_ebz/zcu102/system_bd.tcl | 9 ++++++- projects/daq2/kc705/system_bd.tcl | 9 ++++++- projects/daq2/kcu105/system_bd.tcl | 9 ++++++- projects/daq2/zc706/system_bd.tcl | 9 ++++++- projects/daq2/zcu102/system_bd.tcl | 9 ++++++- projects/daq3/kcu105/system_bd.tcl | 8 +++++- projects/daq3/vcu118/system_bd.tcl | 8 +++++- projects/daq3/zc706/system_bd.tcl | 8 +++++- projects/daq3/zcu102/system_bd.tcl | 8 +++++- projects/fmcadc2/vc707/system_bd.tcl | 6 ++++- projects/fmcadc2/zc706/system_bd.tcl | 6 ++++- projects/fmcjesdadc1/kc705/system_bd.tcl | 6 ++++- projects/fmcjesdadc1/vc707/system_bd.tcl | 6 ++++- projects/fmcjesdadc1/zc706/system_bd.tcl | 6 ++++- projects/fmcomms8/zcu102/system_bd.tcl | 11 +++++++- projects/pluto_ng/system_bd.tcl | 3 ++- projects/scripts/adi_pd.tcl | 8 +++--- 56 files changed, 494 insertions(+), 116 deletions(-) diff --git a/projects/ad40xx_fmc/zed/system_bd.tcl b/projects/ad40xx_fmc/zed/system_bd.tcl index e6e952ee63..c790bef1b5 100644 --- a/projects/ad40xx_fmc/zed/system_bd.tcl +++ b/projects/ad40xx_fmc/zed/system_bd.tcl @@ -23,6 +23,11 @@ ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 set 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" +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/ad4630_fmc/zed/system_bd.tcl b/projects/ad4630_fmc/zed/system_bd.tcl index 71a52b1d62..6805acef7d 100644 --- a/projects/ad4630_fmc/zed/system_bd.tcl +++ b/projects/ad4630_fmc/zed/system_bd.tcl @@ -14,6 +14,9 @@ source ../common/ad463x_bd.tcl ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "sys rom custom string placeholder" +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 88d46edc6d..ae17d6822c 100644 --- a/projects/ad469x_fmc/zed/system_bd.tcl +++ b/projects/ad469x_fmc/zed/system_bd.tcl @@ -23,5 +23,10 @@ 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 +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)" +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/ad6676evb/vc707/system_bd.tcl b/projects/ad6676evb/vc707/system_bd.tcl index 904cc1bf19..c9f7d6dce2 100644 --- a/projects/ad6676evb/vc707/system_bd.tcl +++ b/projects/ad6676evb/vc707/system_bd.tcl @@ -8,4 +8,5 @@ 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 +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 80ee401812..154edeb632 100644 --- a/projects/ad6676evb/zc706/system_bd.tcl +++ b/projects/ad6676evb/zc706/system_bd.tcl @@ -8,4 +8,5 @@ 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 +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 39eeedf24c..200de6186b 100644 --- a/projects/ad7134_fmc/zed/system_bd.tcl +++ b/projects/ad7134_fmc/zed/system_bd.tcl @@ -7,13 +7,6 @@ adi_project_files ad7134_fmc_zed [list \ "$ad_hdl_dir/library/util_cdc/sync_bits.v" \ ] -#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 - # specify ADC resolution -- the design supports 16/24/32 bit resolutions set adc_resolution 24 @@ -22,5 +15,13 @@ set adc_resolution 24 set adc_num_of_channels 8 +#system ID +ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" +ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 + +set sys_cstring "ADC_RESOLUTION=$adc_resolution\ +ADC_NUM_OF_CHANNELS=$adc_num_of_channels" +sysid_gen_sys_init_file $sys_cstring source ../common/ad7134_bd.tcl diff --git a/projects/ad738x_fmc/zed/system_bd.tcl b/projects/ad738x_fmc/zed/system_bd.tcl index 25c084d367..34b5876018 100644 --- a/projects/ad738x_fmc/zed/system_bd.tcl +++ b/projects/ad738x_fmc/zed/system_bd.tcl @@ -2,13 +2,6 @@ source $ad_hdl_dir/projects/common/zed/zed_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.ROM_ADDR_BITS 9 - -sysid_gen_sys_init_file - # specify ADC resolution -- the design supports 16/14/12 bit resolutions set adc_resolution 16 @@ -21,5 +14,16 @@ set adc_num_of_channels 2 set adc_sampling_rate 3000000 +#system ID +ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" +ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 + +set sys_cstring "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 8a8f0f04bb..a1a94ca35b 100644 --- a/projects/ad7405_fmc/zed/system_bd.tcl +++ b/projects/ad7405_fmc/zed/system_bd.tcl @@ -2,13 +2,6 @@ source $ad_hdl_dir/projects/common/zed/zed_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.ROM_ADDR_BITS 9 - -sysid_gen_sys_init_file - # System clock is 100 MHz for this base design set sys_cpu_clk_freq 100 @@ -24,5 +17,16 @@ set clkgen_vco_mul 50 set ext_clk_rate 25 +#system ID +ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 +ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" +ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 + +set sys_cstring "SYS_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/ad7616_sdz/zc706/system_bd.tcl b/projects/ad7616_sdz/zc706/system_bd.tcl index caa1a536cc..36a8cf2d8c 100644 --- a/projects/ad7616_sdz/zc706/system_bd.tcl +++ b/projects/ad7616_sdz/zc706/system_bd.tcl @@ -2,12 +2,16 @@ source $ad_hdl_dir/projects/common/zc706/zc706_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl +source ../common/ad7616_bd.tcl + #system ID ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -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 3f4073bbab..f2e39e9caa 100644 --- a/projects/ad7616_sdz/zed/system_bd.tcl +++ b/projects/ad7616_sdz/zed/system_bd.tcl @@ -2,12 +2,16 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl +source ../common/ad7616_bd.tcl + #system ID ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -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 \ No newline at end of file diff --git a/projects/ad9081_fmca_ebz/a10soc/system_qsys.tcl b/projects/ad9081_fmca_ebz/a10soc/system_qsys.tcl index d368de94bb..6b0c037b5c 100755 --- a/projects/ad9081_fmca_ebz/a10soc/system_qsys.tcl +++ b/projects/ad9081_fmca_ebz/a10soc/system_qsys.tcl @@ -16,5 +16,19 @@ 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 f219be2401..b26e31ef47 100644 --- a/projects/ad9081_fmca_ebz/vck190/system_bd.tcl +++ b/projects/ad9081_fmca_ebz/vck190/system_bd.tcl @@ -19,5 +19,20 @@ 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 +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 diff --git a/projects/ad9081_fmca_ebz/vcu118/system_bd.tcl b/projects/ad9081_fmca_ebz/vcu118/system_bd.tcl index 6b77378e0d..c17d47f942 100644 --- a/projects/ad9081_fmca_ebz/vcu118/system_bd.tcl +++ b/projects/ad9081_fmca_ebz/vcu118/system_bd.tcl @@ -18,7 +18,22 @@ 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 +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 # 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 5b50b071d0..5c460b7331 100644 --- a/projects/ad9081_fmca_ebz/vcu128/system_bd.tcl +++ b/projects/ad9081_fmca_ebz/vcu128/system_bd.tcl @@ -26,11 +26,28 @@ ad_ip_parameter axi_mxfe_rx_jesd/rx CONFIG.NUM_INPUT_PIPELINE 2 ad_ip_parameter axi_mxfe_tx_jesd/tx CONFIG.NUM_OUTPUT_PIPELINE 1 #system ID -ad_ip_parameter axi_sysid_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 "[pwd]/mem_init_sys.txt" -ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 - -sysid_gen_sys_init_file +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 7526562ace..49c51e6736 100644 --- a/projects/ad9081_fmca_ebz/zc706/system_bd.tcl +++ b/projects/ad9081_fmca_ebz/zc706/system_bd.tcl @@ -16,5 +16,18 @@ 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 +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 d14aec5f88..5a9c40b000 100644 --- a/projects/ad9081_fmca_ebz/zcu102/system_bd.tcl +++ b/projects/ad9081_fmca_ebz/zcu102/system_bd.tcl @@ -15,11 +15,28 @@ 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 axi_sysid_0 CONFIG.ROM_ADDR_BITS 10 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 +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 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 fd62b5a3a3..79d0d59b9e 100644 --- a/projects/ad9081_fmca_ebz_x_band/zcu102/system_bd.tcl +++ b/projects/ad9081_fmca_ebz_x_band/zcu102/system_bd.tcl @@ -14,11 +14,28 @@ 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 axi_sysid_0 CONFIG.ROM_ADDR_BITS 10 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 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 diff --git a/projects/ad9083_evb/zcu102/system_bd.tcl b/projects/ad9083_evb/zcu102/system_bd.tcl index 87e5a7481e..0edea5ee13 100644 --- a/projects/ad9083_evb/zcu102/system_bd.tcl +++ b/projects/ad9083_evb/zcu102/system_bd.tcl @@ -7,8 +7,9 @@ source $ad_hdl_dir/projects/scripts/adi_pd.tcl ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "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/ad9083_vna/zcu102/system_bd.tcl b/projects/ad9083_vna/zcu102/system_bd.tcl index 583c6e004c..7dba8da6b6 100644 --- a/projects/ad9083_vna/zcu102/system_bd.tcl +++ b/projects/ad9083_vna/zcu102/system_bd.tcl @@ -8,7 +8,8 @@ source ../common/ad9083_vna_bd.tcl ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "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/ad9695_fmc/zcu102/system_bd.tcl b/projects/ad9695_fmc/zcu102/system_bd.tcl index cba73a2718..4d8baaae2d 100644 --- a/projects/ad9695_fmc/zcu102/system_bd.tcl +++ b/projects/ad9695_fmc/zcu102/system_bd.tcl @@ -7,5 +7,7 @@ source $ad_hdl_dir/projects/scripts/adi_pd.tcl ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "sys rom custom string placeholder" +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/ad_quadmxfe1_ebz/vcu118/system_bd.tcl b/projects/ad_quadmxfe1_ebz/vcu118/system_bd.tcl index 6cd1f05263..ac24c8b0ec 100644 --- a/projects/ad_quadmxfe1_ebz/vcu118/system_bd.tcl +++ b/projects/ad_quadmxfe1_ebz/vcu118/system_bd.tcl @@ -14,11 +14,30 @@ source $ad_hdl_dir/projects/scripts/adi_pd.tcl ad_ip_parameter axi_spi CONFIG.C_SCK_RATIO 16 #system ID -ad_ip_parameter axi_sysid_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 "[pwd]/mem_init_sys.txt" -ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "sys rom custom string placeholder" -sysid_gen_sys_init_file $sys_cstring +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 54b9d097eb..b21428469c 100644 --- a/projects/adaq7980_sdz/zed/system_bd.tcl +++ b/projects/adaq7980_sdz/zed/system_bd.tcl @@ -2,15 +2,18 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl +# 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.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" +sysid_gen_sys_init_file $sys_cstring + -# specify ADC sampling rate in samples/seconds -- default is 1 MSPS -set adc_sampling_rate 1000000 source ../common/adaq7980_bd.tcl diff --git a/projects/adrv9001/zc706/system_bd.tcl b/projects/adrv9001/zc706/system_bd.tcl index 41963aca4d..d230cc5482 100644 --- a/projects/adrv9001/zc706/system_bd.tcl +++ b/projects/adrv9001/zc706/system_bd.tcl @@ -7,6 +7,11 @@ source $ad_hdl_dir/projects/scripts/adi_pd.tcl ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "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 diff --git a/projects/adrv9001/zcu102/system_bd.tcl b/projects/adrv9001/zcu102/system_bd.tcl index 445ca19a39..bd3403cf10 100644 --- a/projects/adrv9001/zcu102/system_bd.tcl +++ b/projects/adrv9001/zcu102/system_bd.tcl @@ -9,7 +9,12 @@ ad_ip_parameter axi_adrv9001 CONFIG.USE_RX_CLK_FOR_TX [expr $ad_project_params(C ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "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 5f66b52b45..079cc7d20f 100644 --- a/projects/adrv9001/zed/system_bd.tcl +++ b/projects/adrv9001/zed/system_bd.tcl @@ -11,5 +11,10 @@ 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 +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/zc706/system_bd.tcl b/projects/adrv9009/zc706/system_bd.tcl index 1cac45733b..54725a479e 100644 --- a/projects/adrv9009/zc706/system_bd.tcl +++ b/projects/adrv9009/zc706/system_bd.tcl @@ -10,9 +10,17 @@ 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 +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_ip_parameter sys_ps7 CONFIG.PCW_FPGA2_PERIPHERAL_FREQMHZ 250 -source ../common/adrv9009_bd.tcl - +source ../common/adrv9009_bd.tcl \ No newline at end of file diff --git a/projects/adrv9009/zcu102/system_bd.tcl b/projects/adrv9009/zcu102/system_bd.tcl index 2b37621598..03685dd031 100644 --- a/projects/adrv9009/zcu102/system_bd.tcl +++ b/projects/adrv9009/zcu102/system_bd.tcl @@ -13,7 +13,16 @@ 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 +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_mem_hp0_interconnect sys_cpu_clk sys_ps8/S_AXI_HP0 diff --git a/projects/adrv9009zu11eg/adrv2crr_fmc/system_bd.tcl b/projects/adrv9009zu11eg/adrv2crr_fmc/system_bd.tcl index d086f6f2f9..fc772924e9 100644 --- a/projects/adrv9009zu11eg/adrv2crr_fmc/system_bd.tcl +++ b/projects/adrv9009zu11eg/adrv2crr_fmc/system_bd.tcl @@ -7,4 +7,15 @@ ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 +set sys_cstring "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 b95cc8dfe9..28f6dea84e 100644 --- a/projects/adrv9009zu11eg/adrv2crr_fmcomms8/system_bd.tcl +++ b/projects/adrv9009zu11eg/adrv2crr_fmcomms8/system_bd.tcl @@ -79,7 +79,16 @@ 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 +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 dfa3a5c4a0..28d643c775 100755 --- a/projects/adrv9009zu11eg/adrv2crr_fmcxmwbr1/system_bd.tcl +++ b/projects/adrv9009zu11eg/adrv2crr_fmcxmwbr1/system_bd.tcl @@ -7,7 +7,16 @@ 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 +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 452395f139..c2df6f7e16 100755 --- a/projects/adrv9009zu11eg/adrv2crr_xmicrowave/system_bd.tcl +++ b/projects/adrv9009zu11eg/adrv2crr_xmicrowave/system_bd.tcl @@ -7,7 +7,16 @@ 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 +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/adrv9371x/kcu105/system_bd.tcl b/projects/adrv9371x/kcu105/system_bd.tcl index 1e4e6987a3..59cdc891ee 100644 --- a/projects/adrv9371x/kcu105/system_bd.tcl +++ b/projects/adrv9371x/kcu105/system_bd.tcl @@ -14,7 +14,16 @@ 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 +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_ip_parameter axi_ddr_cntrl CONFIG.ADDN_UI_CLKOUT3_FREQ_HZ 200 diff --git a/projects/adrv9371x/zc706/system_bd.tcl b/projects/adrv9371x/zc706/system_bd.tcl index 93dd71f81e..dc5524e71b 100644 --- a/projects/adrv9371x/zc706/system_bd.tcl +++ b/projects/adrv9371x/zc706/system_bd.tcl @@ -10,7 +10,16 @@ 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 +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_ip_parameter sys_ps7 CONFIG.PCW_FPGA2_PERIPHERAL_FREQMHZ 200 diff --git a/projects/adrv9371x/zcu102/system_bd.tcl b/projects/adrv9371x/zcu102/system_bd.tcl index 04e4a27f27..8fff9969ab 100644 --- a/projects/adrv9371x/zcu102/system_bd.tcl +++ b/projects/adrv9371x/zcu102/system_bd.tcl @@ -13,7 +13,16 @@ 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 +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_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/cn0561/coraz7s/system_bd.tcl b/projects/cn0561/coraz7s/system_bd.tcl index 3d8e978201..f477f48599 100644 --- a/projects/cn0561/coraz7s/system_bd.tcl +++ b/projects/cn0561/coraz7s/system_bd.tcl @@ -7,12 +7,22 @@ adi_project_files cn0561_coraz7s [list \ "$ad_hdl_dir/library/util_cdc/sync_bits.v" \ ] +# specify ADC resolution -- the design supports 16/24/32 bit resolutions + +set adc_resolution 24 + +# ADC number of channels + +set adc_num_of_channels 4 + #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 +set sys_cstring "ADC_RESOLUTION=$adc_resolution\ +ADC_NUM_OF_CHANNELS=$adc_num_of_channels" +sysid_gen_sys_init_file $sys_cstring #the eval board requires an extra i2c channel for the coraz7s project create_bd_intf_port -mode Master -vlnv xilinx.com:interface:iic_rtl:1.0 iic_0_io @@ -22,13 +32,7 @@ ad_ip_parameter sys_ps7 CONFIG.PCW_I2C0_I2C0_IO EMIO ad_connect iic_0_io sys_ps7/IIC_0 -# specify ADC resolution -- the design supports 16/24/32 bit resolutions - -set adc_resolution 24 -# ADC number of channels - -set adc_num_of_channels 4 source ../common/cn0561_bd.tcl diff --git a/projects/cn0561/zed/system_bd.tcl b/projects/cn0561/zed/system_bd.tcl index b6043e1e37..0e259938f8 100755 --- a/projects/cn0561/zed/system_bd.tcl +++ b/projects/cn0561/zed/system_bd.tcl @@ -2,24 +2,26 @@ source $ad_hdl_dir/projects/common/zed/zed_system_bd.tcl source $ad_hdl_dir/projects/scripts/adi_pd.tcl +# specify ADC resolution -- the design supports 16/24/32 bit resolutions + +set adc_resolution 24 + +# ADC number of channels + +set adc_num_of_channels 4 + #system ID ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 +set sys_cstring "ADC_RESOLUTION=$adc_resolution\ +ADC_NUM_OF_CHANNELS=$adc_num_of_channels" +sysid_gen_sys_init_file $sys_cstring + adi_project_files cn0561_fmc_zed [list \ "$ad_hdl_dir/library/common/ad_edge_detect.v" \ "$ad_hdl_dir/library/util_cdc/sync_bits.v" \ ] -sysid_gen_sys_init_file - -# specify ADC resolution -- the design supports 16/24/32 bit resolutions - -set adc_resolution 24 - -# ADC number of channels - -set adc_num_of_channels 4 - source ../common/cn0561_bd.tcl diff --git a/projects/dac_fmc_ebz/a10soc/system_qsys.tcl b/projects/dac_fmc_ebz/a10soc/system_qsys.tcl index 456a2474d9..19a62c8aa2 100644 --- a/projects/dac_fmc_ebz/a10soc/system_qsys.tcl +++ b/projects/dac_fmc_ebz/a10soc/system_qsys.tcl @@ -43,5 +43,9 @@ set_instance_parameter_value rom_sys_0 {ROM_ADDR_BITS} {9} set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} "[pwd]/mem_init_sys.txt" -sysid_gen_sys_init_file; +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)" +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 709c1f2ac8..df020af979 100755 --- a/projects/dac_fmc_ebz/vcu118/system_bd.tcl +++ b/projects/dac_fmc_ebz/vcu118/system_bd.tcl @@ -12,7 +12,14 @@ ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 set 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" 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 3c9c794347..c7d0be5393 100644 --- a/projects/dac_fmc_ebz/zc706/system_bd.tcl +++ b/projects/dac_fmc_ebz/zc706/system_bd.tcl @@ -46,7 +46,14 @@ ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 set 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" 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 050f6d481b..b56c226aad 100644 --- a/projects/dac_fmc_ebz/zcu102/system_bd.tcl +++ b/projects/dac_fmc_ebz/zcu102/system_bd.tcl @@ -34,6 +34,13 @@ ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 set 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" sysid_gen_sys_init_file $sys_cstring diff --git a/projects/daq2/kc705/system_bd.tcl b/projects/daq2/kc705/system_bd.tcl index 28515c03f6..4957d82e25 100644 --- a/projects/daq2/kc705/system_bd.tcl +++ b/projects/daq2/kc705/system_bd.tcl @@ -18,5 +18,12 @@ ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "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\ +DAC_OFFLOAD_TYPE=$dac_offload_type" sysid_gen_sys_init_file $sys_cstring diff --git a/projects/daq2/kcu105/system_bd.tcl b/projects/daq2/kcu105/system_bd.tcl index 9fbb2a9404..2e867670f1 100644 --- a/projects/daq2/kcu105/system_bd.tcl +++ b/projects/daq2/kcu105/system_bd.tcl @@ -18,7 +18,14 @@ ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "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\ +DAC_OFFLOAD_TYPE=$dac_offload_type" 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 934cefd8d2..6012abcdde 100644 --- a/projects/daq2/zc706/system_bd.tcl +++ b/projects/daq2/zc706/system_bd.tcl @@ -65,5 +65,12 @@ ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "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\ +DAC_OFFLOAD_TYPE=$dac_offload_type" sysid_gen_sys_init_file $sys_cstring diff --git a/projects/daq2/zcu102/system_bd.tcl b/projects/daq2/zcu102/system_bd.tcl index 73f5e80fcf..566eb0711a 100644 --- a/projects/daq2/zcu102/system_bd.tcl +++ b/projects/daq2/zcu102/system_bd.tcl @@ -18,7 +18,14 @@ ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 -set sys_cstring "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\ +DAC_OFFLOAD_TYPE=$dac_offload_type" 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 e4d083a430..9fabe30147 100644 --- a/projects/daq3/kcu105/system_bd.tcl +++ b/projects/daq3/kcu105/system_bd.tcl @@ -18,7 +18,13 @@ 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 +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)" +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 7410ece982..aa07567efd 100644 --- a/projects/daq3/vcu118/system_bd.tcl +++ b/projects/daq3/vcu118/system_bd.tcl @@ -17,7 +17,13 @@ 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 +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)" +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 a26f5e9a7a..43e588e17a 100644 --- a/projects/daq3/zc706/system_bd.tcl +++ b/projects/daq3/zc706/system_bd.tcl @@ -18,4 +18,10 @@ 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 +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)" +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/daq3/zcu102/system_bd.tcl b/projects/daq3/zcu102/system_bd.tcl index fe5362d57b..710da7db5a 100644 --- a/projects/daq3/zcu102/system_bd.tcl +++ b/projects/daq3/zcu102/system_bd.tcl @@ -14,7 +14,13 @@ 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 +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)" +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 9041faf5f2..d4433866bb 100644 --- a/projects/fmcadc2/vc707/system_bd.tcl +++ b/projects/fmcadc2/vc707/system_bd.tcl @@ -14,4 +14,8 @@ 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 +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/fmcadc2/zc706/system_bd.tcl b/projects/fmcadc2/zc706/system_bd.tcl index 8a455ddfcc..eb84c1301e 100644 --- a/projects/fmcadc2/zc706/system_bd.tcl +++ b/projects/fmcadc2/zc706/system_bd.tcl @@ -11,4 +11,8 @@ 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 +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/fmcjesdadc1/kc705/system_bd.tcl b/projects/fmcjesdadc1/kc705/system_bd.tcl index 4e0374ae8d..513bf254da 100644 --- a/projects/fmcjesdadc1/kc705/system_bd.tcl +++ b/projects/fmcjesdadc1/kc705/system_bd.tcl @@ -8,7 +8,11 @@ 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 +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 b85de94c1a..a182cd4c50 100644 --- a/projects/fmcjesdadc1/vc707/system_bd.tcl +++ b/projects/fmcjesdadc1/vc707/system_bd.tcl @@ -8,7 +8,11 @@ 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 +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 ce09210120..445586a7c6 100644 --- a/projects/fmcjesdadc1/zc706/system_bd.tcl +++ b/projects/fmcjesdadc1/zc706/system_bd.tcl @@ -8,4 +8,8 @@ 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 +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/fmcomms8/zcu102/system_bd.tcl b/projects/fmcomms8/zcu102/system_bd.tcl index c2d7e96db3..338e855b23 100644 --- a/projects/fmcomms8/zcu102/system_bd.tcl +++ b/projects/fmcomms8/zcu102/system_bd.tcl @@ -11,7 +11,16 @@ 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 +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 source ../common/fmcomms8_bd.tcl ad_ip_parameter sys_ps8 CONFIG.PSU__CRL_APB__PL1_REF_CTRL__FREQMHZ 300 diff --git a/projects/pluto_ng/system_bd.tcl b/projects/pluto_ng/system_bd.tcl index 1893784cff..c40c40ec62 100644 --- a/projects/pluto_ng/system_bd.tcl +++ b/projects/pluto_ng/system_bd.tcl @@ -599,5 +599,6 @@ ad_cpu_interrupt ps-10 mb-5 axi_adrv9001_tx2_dma/irq ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9 ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "[pwd]/mem_init_sys.txt" ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9 +set sys_cstring "DEVICE=$p_device" -sysid_gen_sys_init_file +sysid_gen_sys_init_file $sys_cstring diff --git a/projects/scripts/adi_pd.tcl b/projects/scripts/adi_pd.tcl index 33b3b2147e..e484282b56 100644 --- a/projects/scripts/adi_pd.tcl +++ b/projects/scripts/adi_pd.tcl @@ -90,7 +90,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]} { @@ -164,7 +164,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"; @@ -192,7 +193,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]]; set sys_mem_file [open "mem_init_sys.txt" "w"];