diff options
author | matt <matt@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-04-02 07:40:52 +0000 |
---|---|---|
committer | matt <matt@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-04-02 07:40:52 +0000 |
commit | 4593e7cb22310c19cb10796b4621c5794690d7e2 (patch) | |
tree | 58f2c6ad269ca5642ece8894d3922dadb5dd5110 /simple_gemac | |
parent | 16e2468e9ca1137497933dcbbb54abcd365071d3 (diff) | |
download | uhd-4593e7cb22310c19cb10796b4621c5794690d7e2.tar.gz uhd-4593e7cb22310c19cb10796b4621c5794690d7e2.tar.bz2 uhd-4593e7cb22310c19cb10796b4621c5794690d7e2.zip |
generate error signal
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10741 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'simple_gemac')
-rw-r--r-- | simple_gemac/simple_gemac_rx.v | 6 |
1 files changed, 3 insertions, 3 deletions
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; |