aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2007-03-30 21:52:52 +0000
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2007-03-30 21:52:52 +0000
commitb505867e3e5430eeeadb87ce1ccfd5ee4241da0e (patch)
tree6d5b0e93b2e3be66e51e2b2a71af8354eb2a1d64
parent9cc7ba54f445f6cdb812132b772f6c96088dedbb (diff)
downloaduhd-b505867e3e5430eeeadb87ce1ccfd5ee4241da0e.tar.gz
uhd-b505867e3e5430eeeadb87ce1ccfd5ee4241da0e.tar.bz2
uhd-b505867e3e5430eeeadb87ce1ccfd5ee4241da0e.zip
registered to meet timing
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4826 221aa14e-8319-0410-a670-987f0aec2ac5
-rwxr-xr-xsdr_lib/cic_decim.v8
1 files changed, 6 insertions, 2 deletions
diff --git a/sdr_lib/cic_decim.v b/sdr_lib/cic_decim.v
index 6c20416f1..8c44f006d 100755
--- a/sdr_lib/cic_decim.v
+++ b/sdr_lib/cic_decim.v
@@ -35,7 +35,8 @@ module cic_decim
input [bw-1:0] signal_in;
output [bw-1:0] signal_out;
reg [bw-1:0] signal_out;
-
+ wire [bw-1:0] signal_out_unreg;
+
wire [bw+maxbitgain-1:0] signal_in_ext;
reg [bw+maxbitgain-1:0] integrator [0:N-1];
reg [bw+maxbitgain-1:0] differentiator [0:N-1];
@@ -83,7 +84,10 @@ module cic_decim
wire [bw+maxbitgain-1:0] signal_out_unnorm = pipeline[N-1];
cic_dec_shifter #(bw)
- cic_dec_shifter(rate,signal_out_unnorm,signal_out);
+ cic_dec_shifter(rate,signal_out_unnorm,signal_out_unreg);
+
+ always @(posedge clock)
+ signal_out <= #1 signal_out_unreg;
endmodule // cic_decim