diff options
author | Matt Ettus <matt@ettus.com> | 2010-10-11 15:53:24 -0700 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2010-11-11 18:07:08 -0800 |
commit | f39dc8ef3113edaf96000c61f1d481f53bb23bda (patch) | |
tree | 3e4aacf551f2f7d93095ab19335319e5f31d64f8 | |
parent | 709174b5eebcee5130302426be921a4e457165a4 (diff) | |
download | uhd-f39dc8ef3113edaf96000c61f1d481f53bb23bda.tar.gz uhd-f39dc8ef3113edaf96000c61f1d481f53bb23bda.tar.bz2 uhd-f39dc8ef3113edaf96000c61f1d481f53bb23bda.zip |
send message on eob to ack the end of transmission
-rw-r--r-- | usrp2/vrt/vita_tx_control.v | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usrp2/vrt/vita_tx_control.v b/usrp2/vrt/vita_tx_control.v index 61cd9edb5..ed470418b 100644 --- a/usrp2/vrt/vita_tx_control.v +++ b/usrp2/vrt/vita_tx_control.v @@ -49,6 +49,7 @@ module vita_tx_control localparam IBS_ERROR_DONE = 4; localparam IBS_ERROR_WAIT = 5; + wire [31:0] CODE_EOB_ACK = {seqnum,16'd1}; wire [31:0] CODE_UNDERRUN = {seqnum,16'd2}; wire [31:0] CODE_SEQ_ERROR = {seqnum,16'd4}; wire [31:0] CODE_TIME_ERROR = {seqnum,16'd8}; @@ -107,7 +108,11 @@ module vita_tx_control end else if(eop) if(eob) - ibs_state <= IBS_IDLE; + begin + ibs_state <= IBS_ERROR; // Not really an error + error_code <= CODE_EOB_ACK; + send_error <= 1; + end else ibs_state <= IBS_CONT_BURST; |