From c0637bae1e4a0ddb996cf2b7eadfad22f782874b Mon Sep 17 00:00:00 2001
From: michael-west <michael.west@ettus.com>
Date: Mon, 2 Aug 2021 09:29:48 -0700
Subject: N3xx: Fix White Rabbit

Reconnect the signals from the White Rabbit module to the TDC in the
FPGA.

Signed-off-by: michael-west <michael.west@ettus.com>
---
 fpga/usrp3/top/n3xx/n3xx_mgt_channel_wrapper.v | 10 ++++++++++
 1 file changed, 10 insertions(+)

(limited to 'fpga')

diff --git a/fpga/usrp3/top/n3xx/n3xx_mgt_channel_wrapper.v b/fpga/usrp3/top/n3xx/n3xx_mgt_channel_wrapper.v
index 9c9c83922..6fc0470aa 100644
--- a/fpga/usrp3/top/n3xx/n3xx_mgt_channel_wrapper.v
+++ b/fpga/usrp3/top/n3xx/n3xx_mgt_channel_wrapper.v
@@ -244,6 +244,12 @@ module n3xx_mgt_channel_wrapper #(
 
   wire [LANES-1:0]      reg_rd_resp_flat;
   wire [(LANES*REG_DWIDTH)-1:0] reg_rd_data_flat;
+  wire [LANES-1:0]      mod_pps_flat;
+  wire [LANES-1:0]      mod_refclk_flat;
+
+  // NOTE: Connecting WR signals of first lane only
+  assign mod_pps = mod_pps_flat[0];
+  assign mod_refclk = mod_refclk_flat[0];
 
   regport_resp_mux #(
     .WIDTH      (REG_DWIDTH),
@@ -338,6 +344,10 @@ module n3xx_mgt_channel_wrapper #(
         .port_info      (port_info[l*32 +: 32]),
         .device_id      (device_id),
 
+        // Timebase Outputs
+        .mod_pps(mod_pps_flat[l]),
+        .mod_refclk(mod_refclk_flat[l]),
+
         // Sideband White Rabbit Control
         .wr_reset_n     (wr_reset_n),
         .wr_refclk      (wr_refclk),
-- 
cgit v1.2.3