diff options
author | Johnathan Corgan <jcorgan@corganenterprises.com> | 2010-02-28 12:47:43 -0800 |
---|---|---|
committer | Johnathan Corgan <jcorgan@corganenterprises.com> | 2010-02-28 12:47:43 -0800 |
commit | a2c00f5cff7407ff10fc6c812d06fefe52c0b6a3 (patch) | |
tree | 77121ca27b951f9bd687dbba33f6a9383ac74d5a /usrp2/fpga/control_lib/medfifo.v | |
parent | db29a2cfc18554ae0a3c55a4e13dc4cbfa86317f (diff) |
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 'usrp2/fpga/control_lib/medfifo.v')
-rw-r--r-- | usrp2/fpga/control_lib/medfifo.v | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/usrp2/fpga/control_lib/medfifo.v b/usrp2/fpga/control_lib/medfifo.v deleted file mode 100644 index 5a77e8c169..0000000000 --- a/usrp2/fpga/control_lib/medfifo.v +++ /dev/null @@ -1,49 +0,0 @@ - -module medfifo - #(parameter WIDTH=32, - parameter DEPTH=1) - (input clk, input rst, - input [WIDTH-1:0] datain, - output [WIDTH-1:0] dataout, - input read, - input write, - input clear, - output full, - output empty, - output [7:0] space, - output [7:0] occupied); - - localparam NUM_FIFOS = (1<<DEPTH); - - wire [WIDTH-1:0] dout [0:NUM_FIFOS-1]; - wire [0:NUM_FIFOS-1] full_x; - wire [0:NUM_FIFOS-1] empty_x; - - shortfifo #(.WIDTH(WIDTH)) - head (.clk(clk),.rst(rst), - .datain(datain),.write(write),.full(full), - .dataout(dout[0]),.read(~empty_x[0] & ~full_x[1]),.empty(empty_x[0]), - .clear(clear),.space(space[4:0]),.occupied() ); - - shortfifo #(.WIDTH(WIDTH)) - tail (.clk(clk),.rst(rst), - .datain(dout[NUM_FIFOS-2]),.write(~empty_x[NUM_FIFOS-2] & ~full_x[NUM_FIFOS-1]),.full(full_x[NUM_FIFOS-1]), - .dataout(dataout),.read(read),.empty(empty), - .clear(clear),.space(),.occupied(occupied[4:0]) ); - - genvar i; - generate - for(i = 1; i < NUM_FIFOS-1 ; i = i + 1) - begin : gen_depth - shortfifo #(.WIDTH(WIDTH)) - shortfifo (.clk(clk),.rst(rst), - .datain(dout[i-1]),.write(~full_x[i] & ~empty_x[i-1]),.full(full_x[i]), - .dataout(dout[i]),.read(~full_x[i+1] & ~empty_x[i]),.empty(empty_x[i]), - .clear(clear),.space(),.occupied() ); - end - endgenerate - - assign space[7:5] = 0; - assign occupied[7:5] = 0; - -endmodule // medfifo |