aboutsummaryrefslogtreecommitdiffstats
path: root/eth/mac_rxfifo_int.v
diff options
context:
space:
mode:
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-03-30 02:37:05 +0000
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-03-30 02:37:05 +0000
commit9e643a57af8f84f6008607d0554896d0206c7cf5 (patch)
tree9d5a111e6de4f37fbd6e15482c581006e5c382f2 /eth/mac_rxfifo_int.v
parentf69a3f4008fc06229735a22121c524f3058259f6 (diff)
downloaduhd-9e643a57af8f84f6008607d0554896d0206c7cf5.tar.gz
uhd-9e643a57af8f84f6008607d0554896d0206c7cf5.tar.bz2
uhd-9e643a57af8f84f6008607d0554896d0206c7cf5.zip
optional (but not used) additional buffering in eth rx path.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10708 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'eth/mac_rxfifo_int.v')
-rw-r--r--eth/mac_rxfifo_int.v11
1 files changed, 11 insertions, 0 deletions
diff --git a/eth/mac_rxfifo_int.v b/eth/mac_rxfifo_int.v
index 9393cbd12..6f6c5ed38 100644
--- a/eth/mac_rxfifo_int.v
+++ b/eth/mac_rxfifo_int.v
@@ -32,13 +32,24 @@ module mac_rxfifo_int
// Write side of short FIFO
assign write = ~full & ~Rx_mac_empty;
assign Rx_mac_rd = write;
+
+`define LONGFIFO 0
+`ifdef LONGFIFO
+ cascadefifo2 #(.WIDTH(35),.SIZE(10)) mac_rx_longfifo
+ (.clk(clk),.rst(rst),.clear(0),
+ .datain({Rx_mac_sop,Rx_mac_eop,Rx_mac_err,Rx_mac_data}),.write(write),.full(full),
+ .dataout({sop_o,eop_o,error_o,wr_dat_o}),.read(read),.empty(empty),
+ .space(), .occupied(fifo_occupied) );
+`else
shortfifo #(.WIDTH(35)) mac_rx_sfifo
(.clk(clk),.rst(rst),.clear(0),
.datain({Rx_mac_sop,Rx_mac_eop,Rx_mac_err,Rx_mac_data}),.write(write),.full(full),
.dataout({sop_o,eop_o,error_o,wr_dat_o}),.read(read),.empty(empty),
.space(), .occupied(fifo_occupied[4:0]) );
assign fifo_occupied[15:5] = 0;
+`endif
+
assign fifo_full = full;
assign fifo_empty = empty;