commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r5756 - gnuradio/branches/developers/matt/u2f/sdr_lib


From: matt
Subject: [Commit-gnuradio] r5756 - gnuradio/branches/developers/matt/u2f/sdr_lib
Date: Sat, 9 Jun 2007 23:35:45 -0600 (MDT)

Author: matt
Date: 2007-06-09 23:35:44 -0600 (Sat, 09 Jun 2007)
New Revision: 5756

Modified:
   gnuradio/branches/developers/matt/u2f/sdr_lib/cic_interp.v
Log:
mostly reformatting


Modified: gnuradio/branches/developers/matt/u2f/sdr_lib/cic_interp.v
===================================================================
--- gnuradio/branches/developers/matt/u2f/sdr_lib/cic_interp.v  2007-06-10 
05:30:57 UTC (rev 5755)
+++ gnuradio/branches/developers/matt/u2f/sdr_lib/cic_interp.v  2007-06-10 
05:35:44 UTC (rev 5756)
@@ -20,31 +20,27 @@
 //
 
 
-module 
cic_interp(clock,reset,enable,rate,strobe_in,strobe_out,signal_in,signal_out);
-   parameter bw = 16;
-   parameter N = 4;
-   parameter log2_of_max_rate = 7;
-   parameter maxbitgain = (N-1)*log2_of_max_rate;
+module cic_interp
+  #(parameter bw = 16, parameter N = 4, parameter log2_of_max_rate = 7)
+    (input clock,
+     input reset,
+     input enable,
+     input [7:0] rate,
+     input strobe_in,
+     input strobe_out,
+     input [bw-1:0] signal_in,
+     output [bw-1:0] signal_out);
    
-   input clock;
-   input reset;
-   input enable;
-   input [7:0] rate;
-   input strobe_in,strobe_out; 
-   input [bw-1:0] signal_in;
-   wire [bw-1:0]       signal_in;
-   output [bw-1:0] signal_out;
-   wire [bw-1:0]   signal_out;
+   integer          i;
+   localparam       maxbitgain = (N-1)*log2_of_max_rate;
 
    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];
-   reg [bw+maxbitgain-1:0] pipeline [0:N-1];
-
-   integer i;
-
+   reg [bw+maxbitgain-1:0]  integrator [0:N-1];
+   reg [bw+maxbitgain-1:0]  differentiator [0:N-1];
+   reg [bw+maxbitgain-1:0]  pipeline [0:N-1];
+   
    sign_extend #(bw,bw+maxbitgain) 
-      ext_input (.in(signal_in),.out(signal_in_ext));
+     ext_input (.in(signal_in),.out(signal_in_ext));
    
    //FIXME Note that this section has pipe and diff reversed
    // It still works, but is confusing





reply via email to

[Prev in Thread] Current Thread [Next in Thread]