diff options
author | Josh Blum <josh@joshknows.com> | 2012-05-10 20:45:22 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-05-10 20:45:22 -0700 |
commit | dddda9d5f31481c5966d13d0f12829722033d1d3 (patch) | |
tree | 13eba1378106d6d94627bf20bb4371ca5a087dbf /fpga | |
parent | 926ee6316d768f72191e5abffc5c0e2074e0bbe7 (diff) | |
parent | 9786c2bd7ba90f8a5abe29b19ba69a30f153f1b4 (diff) | |
download | uhd-dddda9d5f31481c5966d13d0f12829722033d1d3.tar.gz uhd-dddda9d5f31481c5966d13d0f12829722033d1d3.tar.bz2 uhd-dddda9d5f31481c5966d13d0f12829722033d1d3.zip |
Merge branch 'fpga_master'
Diffstat (limited to 'fpga')
-rw-r--r-- | fpga/usrp2/gpmc/cross_clock_reader.v | 14 | ||||
-rw-r--r-- | fpga/usrp2/top/E1x0/u1e_core.v | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/fpga/usrp2/gpmc/cross_clock_reader.v b/fpga/usrp2/gpmc/cross_clock_reader.v index a30e0385f..a8366badc 100644 --- a/fpga/usrp2/gpmc/cross_clock_reader.v +++ b/fpga/usrp2/gpmc/cross_clock_reader.v @@ -1,5 +1,5 @@ // -// Copyright 2011 Ettus Research LLC +// Copyright 2011-2012 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -26,17 +26,19 @@ module cross_clock_reader output reg [WIDTH-1:0] out ); - reg [WIDTH-1:0] shadow; + reg [WIDTH-1:0] shadow0, shadow1; always @(posedge clk) begin if (rst) begin out <= DEFAULT; - shadow <= DEFAULT; + shadow0 <= DEFAULT; + shadow1 <= DEFAULT; end - else if (shadow == in) begin - out <= shadow; + else if (shadow0 == shadow1) begin + out <= shadow1; end - shadow <= in; + shadow0 <= in; + shadow1 <= shadow0; end endmodule //cross_clock_reader diff --git a/fpga/usrp2/top/E1x0/u1e_core.v b/fpga/usrp2/top/E1x0/u1e_core.v index d4af8c0df..77be1bfb0 100644 --- a/fpga/usrp2/top/E1x0/u1e_core.v +++ b/fpga/usrp2/top/E1x0/u1e_core.v @@ -454,7 +454,7 @@ module u1e_core // Readback mux 32 -- Slave #7 //compatibility number -> increment when the fpga has been sufficiently altered - localparam compat_num = {16'd10, 16'd0}; //major, minor + localparam compat_num = {16'd10, 16'd1}; //major, minor wire [31:0] reg_test32; |