diff options
author | Matt Ettus <matt@ettus.com> | 2010-10-11 15:53:24 -0700 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2010-10-11 15:53:24 -0700 |
commit | e45ee09da1f064e58e49d126b3144df198b11fc2 (patch) | |
tree | 600719cf4b0feba56e7d3dfdc9dda9bc5d20150a /usrp2/vrt | |
parent | b338398599e915a66e6d329bffa45b955992b491 (diff) | |
download | uhd-e45ee09da1f064e58e49d126b3144df198b11fc2.tar.gz uhd-e45ee09da1f064e58e49d126b3144df198b11fc2.tar.bz2 uhd-e45ee09da1f064e58e49d126b3144df198b11fc2.zip |
send message on eob to ack the end of transmission
Diffstat (limited to 'usrp2/vrt')
-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; |