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
LBFFilho 2024-02-19 09:02:07 -03:00 committed by GitHub
parent 29544604ec
commit c9d28cdb42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 2 deletions

View File

@ -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

View 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