From 19dafcc4ce1b53651cb7e4d471810cc81aa38528 Mon Sep 17 00:00:00 2001 From: Matt Ettus Date: Wed, 29 Dec 2010 17:13:27 -0800 Subject: run should actually turn on now any time in the IBS_RUN state --- usrp2/vrt/vita_tx_control.v | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/usrp2/vrt/vita_tx_control.v b/usrp2/vrt/vita_tx_control.v index 223e20112..e966d987c 100644 --- a/usrp2/vrt/vita_tx_control.v +++ b/usrp2/vrt/vita_tx_control.v @@ -186,17 +186,14 @@ module vita_tx_control countdown <= 0; end else - if (sample_fifo_src_rdy_i & sample_fifo_dst_rdy_o) - begin - if(eob & eop) - run <= 0; - else - if(sob) - begin - run <= 1; - countdown <= MAX_IDLE; - end - end + if (ibs_state == IBS_RUN) + if(eob & eop & strobe & sample_fifo_src_rdy_i) + run <= 0; + else + begin + run <= 1; + countdown <= MAX_IDLE; + end else if (countdown == 0) run <= 0; -- cgit v1.2.3