diff options
author | matt | 2009-04-02 07:40:52 +0000 |
---|---|---|
committer | matt | 2009-04-02 07:40:52 +0000 |
commit | e2fcebcd1a4369f72ddf314aa153bb4957c7af66 (patch) | |
tree | a57432a7f33f1a767dda4326090ce1e1f5b23ebd /usrp2/fpga/simple_gemac/simple_gemac_rx.v | |
parent | b18e56d0dc2f530e5690a4bb2d8f9a963c090b4f (diff) | |
download | gnuradio-e2fcebcd1a4369f72ddf314aa153bb4957c7af66.tar.gz gnuradio-e2fcebcd1a4369f72ddf314aa153bb4957c7af66.tar.bz2 gnuradio-e2fcebcd1a4369f72ddf314aa153bb4957c7af66.zip |
generate error signal
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10741 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/fpga/simple_gemac/simple_gemac_rx.v')
-rw-r--r-- | usrp2/fpga/simple_gemac/simple_gemac_rx.v | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usrp2/fpga/simple_gemac/simple_gemac_rx.v b/usrp2/fpga/simple_gemac/simple_gemac_rx.v index 64bf2104c..df0e9e686 100644 --- a/usrp2/fpga/simple_gemac/simple_gemac_rx.v +++ b/usrp2/fpga/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; |