Skip to content

Commit

Permalink
Added logging of make params to the sysid memory
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Luncan <[email protected]>
  • Loading branch information
bluncan committed Sep 11, 2023
1 parent 91ec36f commit 6d42b41
Show file tree
Hide file tree
Showing 143 changed files with 776 additions and 528 deletions.
15 changes: 10 additions & 5 deletions projects/ad40xx_fmc/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ 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 chip_name "ADAQ400X"
} else {
set chip_name "AD40XX"
}
set sys_cstring "$chip_name\
ADC_SAMPLING_RATE=$ADC_SAMPLING_RATE\
ADC_RESOLUTION=$ADC_RESOLUTION"

sysid_gen_sys_init_file $sys_cstring
2 changes: 1 addition & 1 deletion projects/ad4110/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion projects/ad4134_fmc/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 7 additions & 4 deletions projects/ad4630_fmc/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 9 additions & 3 deletions projects/ad469x_fmc/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 1 addition & 4 deletions projects/ad5758_sdz/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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

5 changes: 1 addition & 4 deletions projects/ad5766_sdz/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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

8 changes: 4 additions & 4 deletions projects/ad6676evb/vc707/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions projects/ad6676evb/zc706/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions projects/ad7134_fmc/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions projects/ad719x_asdz/coraz7s/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
21 changes: 11 additions & 10 deletions projects/ad738x_fmc/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
22 changes: 12 additions & 10 deletions projects/ad7405_fmc/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
9 changes: 5 additions & 4 deletions projects/ad7606x_fmc/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ source $ad_hdl_dir/projects/scripts/adi_pd.tcl

source ../common/ad7606x_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 "$DEV_CONFIG,$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
13 changes: 7 additions & 6 deletions projects/ad7616_sdz/zc706/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 7 additions & 6 deletions projects/ad7616_sdz/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 1 addition & 4 deletions projects/ad77681evb/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 1 addition & 3 deletions projects/ad7768evb/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions projects/ad777x_ardz/de10nano/system_qsys.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions projects/ad777x_ardz/zed/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 16 additions & 3 deletions projects/ad9081_fmca_ebz/a10soc/system_qsys.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading

0 comments on commit 6d42b41

Please sign in to comment.