Skip to content

Commit

Permalink
ad9081_fmca_ebz: common: versal_transceiver: Force progdiv_clk to float
Browse files Browse the repository at this point in the history
The [rx/tx]_progdiv_clock was truncated if the lane rate was an integer.
So for a lane rate of '10', the ref clock calculated was 151.000
instead of 151.515.

Signed-off-by: Bogdan Luncan <[email protected]>
  • Loading branch information
bluncan committed Nov 5, 2024
1 parent afa541e commit 337a379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/ad9081_fmca_ebz/common/versal_transceiver.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ proc create_versal_phy {
puts "intf_cfg: ${intf_cfg}"
puts "assymmetric_mode: ${asymmetric_mode}"

set rx_progdiv_clock [format %.3f [expr $rx_lane_rate * 1000 / ${clk_divider}]]
set tx_progdiv_clock [format %.3f [expr $tx_lane_rate * 1000 / ${clk_divider}]]
set rx_progdiv_clock [format %.3f [expr $rx_lane_rate * 1000.0 / ${clk_divider}]]
set tx_progdiv_clock [format %.3f [expr $tx_lane_rate * 1000.0 / ${clk_divider}]]
set preset ${transceiver}-JESD204_64B66B

if {$intf_cfg == "RX"} {
Expand Down

0 comments on commit 337a379

Please sign in to comment.