diff options
author | Josh Blum <josh@joshknows.com> | 2012-07-19 11:56:10 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-07-19 11:56:10 -0700 |
commit | 1a22d8adc672dff633b5ea1d7b62dc3d6857c1cb (patch) | |
tree | 1f4305ad302cfca0c52904f07095778d3e8607ec /fpga | |
parent | c5207ff2834c2ff9012d59b94e29d90573e9277f (diff) | |
parent | bd807be75170ef3b97264c3ac6b2693b6c6b2e13 (diff) | |
download | uhd-1a22d8adc672dff633b5ea1d7b62dc3d6857c1cb.tar.gz uhd-1a22d8adc672dff633b5ea1d7b62dc3d6857c1cb.tar.bz2 uhd-1a22d8adc672dff633b5ea1d7b62dc3d6857c1cb.zip |
Merge branch 'fpga_next' into next
Diffstat (limited to 'fpga')
-rw-r--r-- | fpga/usrp2/top/B100/u1plus_core.v | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fpga/usrp2/top/B100/u1plus_core.v b/fpga/usrp2/top/B100/u1plus_core.v index 691ad1f75..9ffbaa202 100644 --- a/fpga/usrp2/top/B100/u1plus_core.v +++ b/fpga/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 |