From 4593e7cb22310c19cb10796b4621c5794690d7e2 Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 2 Apr 2009 07:40:52 +0000 Subject: generate error signal git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10741 221aa14e-8319-0410-a670-987f0aec2ac5 --- simple_gemac/simple_gemac_rx.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'simple_gemac/simple_gemac_rx.v') diff --git a/simple_gemac/simple_gemac_rx.v b/simple_gemac/simple_gemac_rx.v index 64bf2104c..df0e9e686 100644 --- a/simple_gemac/simple_gemac_rx.v +++ b/simple_gemac/simple_gemac_rx.v @@ -27,9 +27,6 @@ module simple_gemac_rx delay_line #(.WIDTH(10)) rx_delay (.clk(rx_clk), .delay(DELAY), .din({rx_dv_d1,rx_er_d1,rxd_d1}),.dout({rx_dv_del,rx_er_dl,rxd_del})); - assign rx_data = rxd_del; - assign rx_error = 0; - always @(posedge rx_clk) if(reset) rx_ack <= 0; @@ -41,6 +38,9 @@ module simple_gemac_rx (pass_bcast & is_bcast) | (pass_pause & is_pause) | pass_all; reg [7:0] rx_state; + assign rx_data = rxd_del; + assign rx_error = (rx_state == RX_ERROR); + always @(posedge rx_clk) if(reset) rx_valid <= 0; -- cgit v1.2.3