s10soc: Fix issue affecting stratix 10 projects (#1221)
The introduction of sysid IPs on some Stratix 10 projects introduced a problem where they would fail to build, due to mem_init_sys_file_path not being defined. This is fixed now. Signed-off-by: Laez Barbosa <laez.barbosa@analog.com>main
parent
29544604ec
commit
c9d28cdb42
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue