Skip to content

Commit

Permalink
projects: Add missing sysid IP
Browse files Browse the repository at this point in the history
The sysid IP was added in ad9209_fmca_ebz/vck190, ad9213_dual_ebz/s10soc
and ad9213_dual_ebz/s10soc

Signed-off-by: Pop Ioan Daniel <[email protected]>
  • Loading branch information
PIoandan committed Jul 7, 2023
1 parent 8b15d66 commit a1e6952
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 3 deletions.
7 changes: 7 additions & 0 deletions projects/ad9209_fmca_ebz/vck190/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ set ad_project_params(TX_NUM_LINKS) 1
set ad_project_params(TX_KS_PER_CHANNEL) 1

source $ad_hdl_dir/projects/ad9081_fmca_ebz/vck190/system_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
set sys_cstring "sys rom custom string placeholder"
sysid_gen_sys_init_file $sys_cstring
1 change: 1 addition & 0 deletions projects/ad9213_dual_ebz/s10soc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
PROJECT_NAME := ad9213_dual_ebz_s10soc

M_DEPS += ../common/ad9213_dual_qsys.tcl
M_DEPS += ../../scripts/adi_pd.tcl
M_DEPS += ../../common/s10soc/s10soc_system_qsys.tcl
M_DEPS += ../../common/s10soc/s10soc_system_assign.tcl
M_DEPS += ../../common/intel/adcfifo_qsys.tcl
Expand Down
10 changes: 10 additions & 0 deletions projects/ad9213_dual_ebz/s10soc/system_qsys.tcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

set adc_fifo_address_width 15

source $ad_hdl_dir/projects/scripts/adi_pd.tcl
source $ad_hdl_dir/projects/common/s10soc/s10soc_system_qsys.tcl
source $ad_hdl_dir/projects/common/intel/adcfifo_qsys.tcl

Expand All @@ -9,3 +10,12 @@ if [info exists ad_project_dir] {
} else {
source ../common/ad9213_dual_qsys.tcl
}

#system ID
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 sys_cstring "sys rom custom string placeholder";
sysid_gen_sys_init_file $sys_cstring;
9 changes: 6 additions & 3 deletions projects/adrv9009/s10soc/Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
####################################################################################
## Copyright (c) 2018 - 2023 Analog Devices, Inc.
###############################################################################
## Copyright (C) 2018-2023 Analog Devices, Inc.
### SPDX short identifier: BSD-1-Clause
## Auto-generated, do not modify!
####################################################################################
###############################################################################

PROJECT_NAME := adrv9009_s10soc

M_DEPS += ../common/adrv9009_qsys.tcl
M_DEPS += ../../scripts/adi_pd.tcl
M_DEPS += ../../common/s10soc/s10soc_system_qsys.tcl
M_DEPS += ../../common/s10soc/s10soc_system_assign.tcl
M_DEPS += ../../common/intel/dacfifo_qsys.tcl

LIB_DEPS += axi_dmac
LIB_DEPS += axi_sysid
LIB_DEPS += intel/adi_jesd204
LIB_DEPS += jesd204/ad_ip_jesd204_tpl_adc
LIB_DEPS += jesd204/ad_ip_jesd204_tpl_dac
LIB_DEPS += sysid_rom
LIB_DEPS += util_pack/util_cpack2
LIB_DEPS += util_pack/util_upack2

Expand Down
10 changes: 10 additions & 0 deletions projects/adrv9009/s10soc/system_qsys.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
set dac_fifo_address_width 10
set xcvr_reconfig_addr_width 11

source $ad_hdl_dir/projects/scripts/adi_pd.tcl
source $ad_hdl_dir/projects/common/s10soc/s10soc_system_qsys.tcl
source $ad_hdl_dir/projects/common/intel/dacfifo_qsys.tcl

Expand All @@ -10,3 +11,12 @@ if [info exists ad_project_dir] {
} else {
source ../common/adrv9009_qsys.tcl
}

#system ID
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"

sysid_gen_sys_init_file;

6 changes: 6 additions & 0 deletions projects/common/s10soc/s10soc_system_qsys.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ set_interface_property rst_ninit_done EXPORT_OF s10_reset.ninit_done

# sysid

add_instance axi_sysid_0 axi_sysid
add_instance rom_sys_0 sysid_rom

add_instance sys_id altera_avalon_sysid_qsys
set_instance_parameter_value sys_id {ID} {0x00000100}
add_connection sys_clk.clk sys_id.clk
add_connection sys_clk.clk_reset sys_id.reset
add_connection sys_clk.clk rom_sys_0.if_clk
add_connection sys_clk.clk axi_sysid_0.s_axi_clock
add_connection sys_clk.clk_reset axi_sysid_0.s_axi_reset

# hps
# round-about way - qsys-script doesn't support {*}?
Expand Down

0 comments on commit a1e6952

Please sign in to comment.