From 029602d026f5e66ea6fcadc6ae75c1808851e444 Mon Sep 17 00:00:00 2001 From: Matt Ettus Date: Fri, 11 Sep 2009 01:05:24 -0700 Subject: barebones udp support. Compiles, but untested. --- control_lib/newfifo/fifo19_rxrealign.v | 42 ---------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 control_lib/newfifo/fifo19_rxrealign.v (limited to 'control_lib') diff --git a/control_lib/newfifo/fifo19_rxrealign.v b/control_lib/newfifo/fifo19_rxrealign.v deleted file mode 100644 index 35ad90951..000000000 --- a/control_lib/newfifo/fifo19_rxrealign.v +++ /dev/null @@ -1,42 +0,0 @@ - - -// Adds a junk line at the beginning of every packet, which the -// following stages should ignore. This gives us proper alignment due -// to the 14 byte ethernet header - -// Bit 18 -- odd length -// Bit 17 -- eof -// Bit 16 -- sof -// Bit 15:0 -- data - -module fifo19_rxrealign - (input clk, input reset, input clear, - input [18:0] datain, input src_rdy_i, output dst_rdy_o, - output [18:0] dataout, output src_rdy_o, input dst_rdy_i); - - reg rxre_state; - localparam RXRE_DUMMY = 0; - localparam RXRE_PKT = 1; - - assign dataout[18] = datain[18]; - assign dataout[17] = datain[17]; - assign dataout[16] = (rxre_state==RXRE_DUMMY) | (datain[17] & datain[16]); // allows for passing error signal - assign dataout[15:0] = datain[15:0]; - - always @(posedge clk) - if(reset | clear) - rxre_state <= RXRE_DUMMY; - else if(src_rdy_i & dst_rdy_i) - case(rxre_state) - RXRE_DUMMY : - rxre_state <= RXRE_PKT; - RXRE_PKT : - if(datain[17]) // if eof or error - rxre_state <= RXRE_DUMMY; - endcase // case (rxre_state) - - assign src_rdy_o = src_rdy_i & dst_rdy_i; // Send anytime both sides are ready - assign dst_rdy_o = src_rdy_i & dst_rdy_i & (rxre_state == RXRE_PKT); // Only consume after the dummy - -endmodule // fifo19_rxrealign - -- cgit v1.2.3