[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r6001 - gnuradio/branches/developers/matt/u2f/control_
From: |
matt |
Subject: |
[Commit-gnuradio] r6001 - gnuradio/branches/developers/matt/u2f/control_lib |
Date: |
Tue, 17 Jul 2007 11:47:28 -0600 (MDT) |
Author: matt
Date: 2007-07-17 11:47:28 -0600 (Tue, 17 Jul 2007)
New Revision: 6001
Modified:
gnuradio/branches/developers/matt/u2f/control_lib/shortfifo.v
Log:
parameterized data width
Modified: gnuradio/branches/developers/matt/u2f/control_lib/shortfifo.v
===================================================================
--- gnuradio/branches/developers/matt/u2f/control_lib/shortfifo.v
2007-07-17 17:46:58 UTC (rev 6000)
+++ gnuradio/branches/developers/matt/u2f/control_lib/shortfifo.v
2007-07-17 17:47:28 UTC (rev 6001)
@@ -1,18 +1,19 @@
module shortfifo
- (input clk, input rst,
- input [31:0] datain,
- output [31:0] dataout,
- input read,
- input write,
- output full,
- output reg empty);
-
+ #(parameter WIDTH=32)
+ (input clk, input rst,
+ input [WIDTH-1:0] datain,
+ output [WIDTH-1:0] dataout,
+ input read,
+ input write,
+ output full,
+ output reg empty);
+
reg [3:0] a;
genvar i;
generate
- for (i=0;i<32;i=i+1)
+ for (i=0;i<WIDTH;i=i+1)
begin : gen_srl16
SRL16E
srl16e(.Q(dataout[i]),
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r6001 - gnuradio/branches/developers/matt/u2f/control_lib,
matt <=