summaryrefslogtreecommitdiffstats
path: root/usrp2/top/B100
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-07-18 13:45:42 -0700
committerJosh Blum <josh@joshknows.com>2012-07-18 13:45:42 -0700
commitbd807be75170ef3b97264c3ac6b2693b6c6b2e13 (patch)
treeabe3d553f496ad8e0c23f016e4ae4d6c6e185a38 /usrp2/top/B100
parent9ecbfeb8ee52b6a59b8757cb259b325cebd05199 (diff)
downloaduhd-bd807be75170ef3b97264c3ac6b2693b6c6b2e13.tar.gz
uhd-bd807be75170ef3b97264c3ac6b2693b6c6b2e13.tar.bz2
uhd-bd807be75170ef3b97264c3ac6b2693b6c6b2e13.zip
u1plus: added sr misc hook for clock sync
Diffstat (limited to 'usrp2/top/B100')
-rw-r--r--usrp2/top/B100/u1plus_core.v9
1 files changed, 8 insertions, 1 deletions
diff --git a/usrp2/top/B100/u1plus_core.v b/usrp2/top/B100/u1plus_core.v
index 691ad1f75..9ffbaa202 100644
--- a/usrp2/top/B100/u1plus_core.v
+++ b/usrp2/top/B100/u1plus_core.v
@@ -105,10 +105,16 @@ module u1plus_core
wire [31:0] config_word0;
setting_reg #(.my_addr(SR_MISC+0), .width(32)) sr_misc_config0
(.clk(clk), .rst(1'b0/*reset*/), .strobe(set_stb), .addr(set_addr), .in(set_data), .out(config_word0));
+
wire [31:0] config_word1;
setting_reg #(.my_addr(SR_MISC+1), .width(32)) sr_misc_config1
(.clk(clk), .rst(1'b0/*reset*/), .strobe(set_stb), .addr(set_addr), .in(set_data), .out(config_word1));
+ wire clock_sync_inv, clock_sync_enb;
+ setting_reg #(.my_addr(SR_MISC+2), .width(2)) sr_misc_clock_sync
+ (.clk(clk), .rst(reset), .strobe(set_stb), .addr(set_addr), .in(set_data),
+ .out({clock_sync_inv, clock_sync_enb}));
+
///////////////////////////////////////////////////////////////////////////
// Settings Bus and Readback
///////////////////////////////////////////////////////////////////////////
@@ -151,7 +157,8 @@ module u1plus_core
(.clk(clk), .rst(reset), .set_stb(set_stb), .set_addr(set_addr), .set_data(set_data),
.pps(pps_in), .vita_time(vita_time), .vita_time_pps(vita_time_pps),
.exp_time_in(0));
- assign clock_sync = 1'b0;
+
+ assign clock_sync = (clock_sync_enb)? (pps_in ^ clock_sync_inv) : 1'b0;
///////////////////////////////////////////////////////////////////////////
// SPI Core