diff --git a/projects/ad9213_dual_ebz/s10soc/system_qsys.tcl b/projects/ad9213_dual_ebz/s10soc/system_qsys.tcl index f016dd3e9..6d37a54fe 100755 --- a/projects/ad9213_dual_ebz/s10soc/system_qsys.tcl +++ b/projects/ad9213_dual_ebz/s10soc/system_qsys.tcl @@ -16,9 +16,16 @@ if [info exists ad_project_dir] { } #system ID + +if {[info exists ::env(ADI_PROJECT_DIR)]} { + set mem_init_sys_file_path "$::env(ADI_PROJECT_DIR)mem_init_sys.txt"; +} else { + set mem_init_sys_file_path mem_init_sys.txt; +} + 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} "$mem_init_sys_file_path/mem_init_sys.txt" +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} $mem_init_sys_file_path sysid_gen_sys_init_file diff --git a/projects/adrv9009/s10soc/system_qsys.tcl b/projects/adrv9009/s10soc/system_qsys.tcl index 16985a5d3..9a127163b 100755 --- a/projects/adrv9009/s10soc/system_qsys.tcl +++ b/projects/adrv9009/s10soc/system_qsys.tcl @@ -17,10 +17,17 @@ if [info exists ad_project_dir] { } #system ID + +if {[info exists ::env(ADI_PROJECT_DIR)]} { + set mem_init_sys_file_path "$::env(ADI_PROJECT_DIR)mem_init_sys.txt"; +} else { + set mem_init_sys_file_path mem_init_sys.txt; +} + 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} "$mem_init_sys_file_path/mem_init_sys.txt" +set_instance_parameter_value rom_sys_0 {PATH_TO_FILE} $mem_init_sys_file_path sysid_gen_sys_init_file