From 82021edffe26f6685240db4e6148f45bc2ff34f7 Mon Sep 17 00:00:00 2001 From: Laszlo Nagy Date: Fri, 29 Nov 2019 09:35:55 +0000 Subject: [PATCH] adi_board.tcl:ad_xcvrcon: do not reorder common control When channels are not swapped in groups of four but are completely out of order the common control channel can't be reordered based on the index of the channel. --- projects/scripts/adi_board.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/scripts/adi_board.tcl b/projects/scripts/adi_board.tcl index a6e9d768f..dc806f220 100644 --- a/projects/scripts/adi_board.tcl +++ b/projects/scripts/adi_board.tcl @@ -280,8 +280,8 @@ proc ad_xcvrcon {u_xcvr a_xcvr a_jesd {lane_map {}} {device_clk {}}} { } } - if {(($phys_lane%4) == 0) && ($qpll_enable == 1)} { - ad_connect ${a_xcvr}/up_cm_${n} ${u_xcvr}/up_cm_${phys_lane} + if {(($n%4) == 0) && ($qpll_enable == 1)} { + ad_connect ${a_xcvr}/up_cm_${n} ${u_xcvr}/up_cm_${n} } ad_connect ${a_xcvr}/up_ch_${n} ${u_xcvr}/up_${txrx}_${phys_lane} ad_connect ${device_clk} ${u_xcvr}/${txrx}_clk_${phys_lane}