diff options
author | Matt Ettus <matt@ettus.com> | 2011-05-09 17:20:32 -0700 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2011-06-08 10:52:51 -0700 |
commit | 568535308d377eeb459a385f7a10b40cbe73a4d9 (patch) | |
tree | 746a8743e86c0e6d521c8c5a6cfcc74c2ab7e61e /usrp2/sdr_lib/round_sd.v | |
parent | 90c74cd45885ab2aba3d090a8deebd11b96c6d7c (diff) | |
download | uhd-568535308d377eeb459a385f7a10b40cbe73a4d9.tar.gz uhd-568535308d377eeb459a385f7a10b40cbe73a4d9.tar.bz2 uhd-568535308d377eeb459a385f7a10b40cbe73a4d9.zip |
dsp: add2_and_clip_reg and round_sd now are now strobed to be compatible
with strobed (non-full rate) data
Diffstat (limited to 'usrp2/sdr_lib/round_sd.v')
-rw-r--r-- | usrp2/sdr_lib/round_sd.v | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usrp2/sdr_lib/round_sd.v b/usrp2/sdr_lib/round_sd.v index b77c1471b..aeeb3502f 100644 --- a/usrp2/sdr_lib/round_sd.v +++ b/usrp2/sdr_lib/round_sd.v @@ -4,7 +4,8 @@ module round_sd #(parameter WIDTH_IN=18, parameter WIDTH_OUT=16) (input clk, input reset, - input [WIDTH_IN-1:0] in, output [WIDTH_OUT-1:0] out); + input [WIDTH_IN-1:0] in, input strobe_in, + output [WIDTH_OUT-1:0] out, output strobe_out); localparam ERR_WIDTH = WIDTH_IN - WIDTH_OUT + 1; @@ -14,7 +15,7 @@ module round_sd sign_extend #(.bits_in(ERR_WIDTH),.bits_out(WIDTH_IN)) ext_err (.in(err), .out(err_ext)); add2_and_clip_reg #(.WIDTH(WIDTH_IN)) add2_and_clip_reg - (.clk(clk), .rst(reset), .in1(in), .in2(err_ext), .sum(sum)); + (.clk(clk), .rst(reset), .in1(in), .in2(err_ext), .strobe_in(strobe_in), .sum(sum), .strobe_out(strobe_out)); round #(.bits_in(WIDTH_IN),.bits_out(WIDTH_OUT)) round_sum (.in(sum), .out(out), .err(err)); |