Skip to content

Commit

Permalink
projects/dac_fmc_ebz/zcu102: Change LANE_INVERT value
Browse files Browse the repository at this point in the history
The 240 LANE_INVERT value is specific only for the
AD9161, AD9162, AD9163 and AD9164.

Signed-off-by: PopPaul2021 <[email protected]>
  • Loading branch information
PopPaul2021 committed Nov 28, 2024
1 parent 7d23b8a commit dc905f0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions projects/dac_fmc_ebz/zcu102/system_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ if {[info exists ::env(ADI_LANE_RATE)]} {
set ADI_LANE_RATE 15.4
}

set ADI_DEVICE_CODE $ad_project_params(DEVICE_CODE)

# Common for both 12.5 and 15.4 GHz Lane Rate

ad_ip_parameter util_dac_jesd204_xcvr CONFIG.QPLL_REFCLK_DIV 1
Expand Down Expand Up @@ -55,7 +57,10 @@ if { $ADI_LANE_RATE == 15.4 } {

ad_ip_parameter dac_jesd204_link/tx CONFIG.SYSREF_IOB false
ad_ip_parameter dac_dma CONFIG.DMA_DATA_WIDTH_SRC 128
ad_ip_parameter util_dac_jesd204_xcvr CONFIG.TX_LANE_INVERT 240

if { $ADI_DEVICE_CODE == 3 } {
ad_ip_parameter util_dac_jesd204_xcvr CONFIG.TX_LANE_INVERT 240
}

#system ID
ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9
Expand All @@ -69,7 +74,7 @@ L=$ad_project_params(JESD_L)\
S=$ad_project_params(JESD_S)\
NP=$ad_project_params(JESD_NP)\
LINKS=$ad_project_params(NUM_LINKS)\
DEVICE_CODE=$ad_project_params(DEVICE_CODE)\
DEVICE_CODE=$ADI_DEVICE_CODE\
DAC_DEVICE=$ADI_DAC_DEVICE\
DAC_MODE=$ADI_DAC_MODE\
ADI_LANE_RATE=$ADI_LANE_RATE\
Expand Down

0 comments on commit dc905f0

Please sign in to comment.