From 4f0b3bff9285eeb9cc5f761e5ce0b2a8f9b90d38 Mon Sep 17 00:00:00 2001 From: Matt Ettus Date: Mon, 7 Mar 2011 21:15:33 -0800 Subject: prot eng should work, ethtx is a skeleton --- usrp2/udp/ethtx_realign.v | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 usrp2/udp/ethtx_realign.v (limited to 'usrp2/udp/ethtx_realign.v') diff --git a/usrp2/udp/ethtx_realign.v b/usrp2/udp/ethtx_realign.v new file mode 100644 index 000000000..c98d34cf4 --- /dev/null +++ b/usrp2/udp/ethtx_realign.v @@ -0,0 +1,24 @@ + +module ethtx_realign + (input clk, input reset, input clear, + input [35:0] datain, input src_rdy_i, output dst_rdy_o, + output [35:0] dataout, output src_rdy_o, input dst_rdy_i); + + reg state; + + wire eof_in = datain[33]; + wire [1:0] occ_in = datain[35:34]; + + always @(posedge clk) + if(reset | clear) + state <= 0; + else if + + assign dataout[15:0] = datain[31:16]; + assign dataout[31:16] = stored; + + always @(posedge clk) + stored <= datain[15:0]; + + +endmodule // ethtx_realign -- cgit v1.2.3