[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r9485 - gnuradio/trunk/usrp/fpga/sdr_lib
From: |
matt |
Subject: |
[Commit-gnuradio] r9485 - gnuradio/trunk/usrp/fpga/sdr_lib |
Date: |
Tue, 2 Sep 2008 13:50:09 -0600 (MDT) |
Author: matt
Date: 2008-09-02 13:50:09 -0600 (Tue, 02 Sep 2008)
New Revision: 9485
Modified:
gnuradio/trunk/usrp/fpga/sdr_lib/cic_interp.v
Log:
Allows for changing the interpolation rate dynamically. Stop the pipeline, set
the rate, restart the pipeline. Fixes bug #248.
Modified: gnuradio/trunk/usrp/fpga/sdr_lib/cic_interp.v
===================================================================
--- gnuradio/trunk/usrp/fpga/sdr_lib/cic_interp.v 2008-09-02 18:13:40 UTC
(rev 9484)
+++ gnuradio/trunk/usrp/fpga/sdr_lib/cic_interp.v 2008-09-02 19:50:09 UTC
(rev 9485)
@@ -45,11 +45,12 @@
sign_extend #(bw,bw+maxbitgain)
ext_input (.in(signal_in),.out(signal_in_ext));
-
+
+ wire clear_me = reset | ~enable;
//FIXME Note that this section has pipe and diff reversed
// It still works, but is confusing
always @(posedge clock)
- if(reset)
+ if(clear_me)
for(i=0;i<N;i=i+1)
integrator[i] <= #1 0;
else if (enable & strobe_out)
@@ -61,7 +62,7 @@
end
always @(posedge clock)
- if(reset)
+ if(clear_me)
begin
for(i=0;i<N;i=i+1)
begin
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r9485 - gnuradio/trunk/usrp/fpga/sdr_lib,
matt <=