Skip to content

Commit

Permalink
ad9081: common: ad9081_fmca_ebz_bd: Fix number of quads calculation
Browse files Browse the repository at this point in the history
The old formula would result in '0' quads when L was less than 4
and would not properly connect the serial lanes to the PHY.

Signed-off-by: Bogdan Luncan <[email protected]>
  • Loading branch information
bluncan committed Nov 27, 2024
1 parent 45fec15 commit 4a5213f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ad9081_fmca_ebz/common/ad9081_fmca_ebz_bd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ set TX_SAMPLES_PER_CHANNEL [expr $TX_NUM_OF_LANES * 8 * $TX_DATAPATH_WIDTH / ($T

# TODO: Increase the maximum number of quads if necessary
set max_num_quads 2
set num_quads [expr int(round(1.0 * $RX_NUM_OF_LANES / 4))]
set num_quads [expr int(ceil(1.0 * $RX_NUM_OF_LANES / 4))]

source $ad_hdl_dir/library/jesd204/scripts/jesd204.tcl

Expand Down

0 comments on commit 4a5213f

Please sign in to comment.