summaryrefslogtreecommitdiff
path: root/usrp/fpga/models/fifo_1c_4k.v
diff options
context:
space:
mode:
authorJohnathan Corgan2010-02-28 12:47:43 -0800
committerJohnathan Corgan2010-02-28 12:47:43 -0800
commita2c00f5cff7407ff10fc6c812d06fefe52c0b6a3 (patch)
tree77121ca27b951f9bd687dbba33f6a9383ac74d5a /usrp/fpga/models/fifo_1c_4k.v
parentdb29a2cfc18554ae0a3c55a4e13dc4cbfa86317f (diff)
downloadgnuradio-a2c00f5cff7407ff10fc6c812d06fefe52c0b6a3.tar.gz
gnuradio-a2c00f5cff7407ff10fc6c812d06fefe52c0b6a3.tar.bz2
gnuradio-a2c00f5cff7407ff10fc6c812d06fefe52c0b6a3.zip
Remove usrp1 and usrp2 FPGA files. These are now hosted at:
git://ettus.sourcerepo.com/ettus/fpga.git ...under the 'usrp1' and 'usrp2' top-level directories.
Diffstat (limited to 'usrp/fpga/models/fifo_1c_4k.v')
-rw-r--r--usrp/fpga/models/fifo_1c_4k.v76
1 files changed, 0 insertions, 76 deletions
diff --git a/usrp/fpga/models/fifo_1c_4k.v b/usrp/fpga/models/fifo_1c_4k.v
deleted file mode 100644
index 3e5ddd052..000000000
--- a/usrp/fpga/models/fifo_1c_4k.v
+++ /dev/null
@@ -1,76 +0,0 @@
-// Model of FIFO in Altera
-
-module fifo_1c_4k ( data, wrreq, rdreq, rdclk, wrclk, aclr, q,
- rdfull, rdempty, rdusedw, wrfull, wrempty, wrusedw);
-
- parameter width = 32;
- parameter depth = 4096;
- //`define rd_req 0; // Set this to 0 for rd_ack, 1 for rd_req
-
- input [31:0] data;
- input wrreq;
- input rdreq;
- input rdclk;
- input wrclk;
- input aclr;
- output [31:0] q;
- output rdfull;
- output rdempty;
- output [7:0] rdusedw;
- output wrfull;
- output wrempty;
- output [7:0] wrusedw;
-
- reg [width-1:0] mem [0:depth-1];
- reg [7:0] rdptr;
- reg [7:0] wrptr;
-
-`ifdef rd_req
- reg [width-1:0] q;
-`else
- wire [width-1:0] q;
-`endif
-
- reg [7:0] rdusedw;
- reg [7:0] wrusedw;
-
- integer i;
-
- always @( aclr)
- begin
- wrptr <= #1 0;
- rdptr <= #1 0;
- for(i=0;i<depth;i=i+1)
- mem[i] <= #1 0;
- end
-
- always @(posedge wrclk)
- if(wrreq)
- begin
- wrptr <= #1 wrptr+1;
- mem[wrptr] <= #1 data;
- end
-
- always @(posedge rdclk)
- if(rdreq)
- begin
- rdptr <= #1 rdptr+1;
-`ifdef rd_req
- q <= #1 mem[rdptr];
-`endif
- end
-
-`ifdef rd_req
-`else
- assign q = mem[rdptr];
-`endif
-
- // Fix these
- always @(posedge wrclk)
- wrusedw <= #1 wrptr - rdptr;
-
- always @(posedge rdclk)
- rdusedw <= #1 wrptr - rdptr;
-
-
-endmodule // fifo_1c_4k