summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-04-02 07:39:57 +0000
committermatt <matt@221aa14e-8319-0410-a670-987f0aec2ac5>2009-04-02 07:39:57 +0000
commit16e2468e9ca1137497933dcbbb54abcd365071d3 (patch)
tree715307ef408b0283004b00b0564d6c967f9cec18
parentdca0d04278c24301fede72e9ad2b1d6154bfc029 (diff)
downloaduhd-16e2468e9ca1137497933dcbbb54abcd365071d3.tar.gz
uhd-16e2468e9ca1137497933dcbbb54abcd365071d3.tar.bz2
uhd-16e2468e9ca1137497933dcbbb54abcd365071d3.zip
added error output line, alternative to simultaneous sof/eof
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10740 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r--simple_gemac/rxmac_to_ll8.v14
1 files changed, 8 insertions, 6 deletions
diff --git a/simple_gemac/rxmac_to_ll8.v b/simple_gemac/rxmac_to_ll8.v
index 9a795b257..cb5814ce3 100644
--- a/simple_gemac/rxmac_to_ll8.v
+++ b/simple_gemac/rxmac_to_ll8.v
@@ -2,14 +2,16 @@
module rxmac_to_ll8
(input clk, input reset, input clear,
input [7:0] rx_data, input rx_valid, input rx_error, input rx_ack,
- output [7:0] ll_data, output ll_sof, output ll_eof, output ll_src_rdy, input ll_dst_rdy );
+ output [7:0] ll_data, output ll_sof, output ll_eof, output ll_error, output ll_src_rdy, input ll_dst_rdy );
- assign ll_data = rx_data;
- assign ll_src_rdy = rx_valid;
- assign ll_sof = ((xfer_state==XFER_IDLE)|(xfer_state==XFER_ERROR)|(xfer_state==XFER_OVERRUN));
- assign ll_eof = (rx_ack | (xfer_state==XFER_ERROR) | (xfer_state==XFER_OVERRUN));
-
reg [1:0] xfer_state;
+
+ assign ll_data = rx_data;
+ assign ll_src_rdy = rx_valid;
+ assign ll_sof = ((xfer_state==XFER_IDLE)|(xfer_state==XFER_ERROR)|(xfer_state==XFER_OVERRUN));
+ assign ll_eof = (rx_ack | (xfer_state==XFER_ERROR) | (xfer_state==XFER_OVERRUN));
+ assign ll_error = (xfer_state == XFER_ERROR);
+
localparam XFER_IDLE = 0;
localparam XFER_ACTIVE = 1;
localparam XFER_ERROR = 2;