aboutsummaryrefslogtreecommitdiffstats
path: root/usrp2/vrt/vita_tx_control.v
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2010-11-07 11:51:28 -0800
committerMatt Ettus <matt@ettus.com>2010-11-11 18:57:37 -0800
commit587dfe7db4b4749ffedb5e7e3a0a36a83dd90c6a (patch)
tree375eb4899875ccd9b655a7eadbd55b842298f21c /usrp2/vrt/vita_tx_control.v
parent823f04cf0046fb61109bd10b8fd41942a7359a06 (diff)
downloaduhd-587dfe7db4b4749ffedb5e7e3a0a36a83dd90c6a.tar.gz
uhd-587dfe7db4b4749ffedb5e7e3a0a36a83dd90c6a.tar.bz2
uhd-587dfe7db4b4749ffedb5e7e3a0a36a83dd90c6a.zip
clear out the vita tx chain and the tx fifo. need to check the fifo
reset to make sure it is in the correct clock domain.
Diffstat (limited to 'usrp2/vrt/vita_tx_control.v')
-rw-r--r--usrp2/vrt/vita_tx_control.v9
1 files changed, 2 insertions, 7 deletions
diff --git a/usrp2/vrt/vita_tx_control.v b/usrp2/vrt/vita_tx_control.v
index 936762212..eb41c54c0 100644
--- a/usrp2/vrt/vita_tx_control.v
+++ b/usrp2/vrt/vita_tx_control.v
@@ -58,11 +58,6 @@ module vita_tx_control
reg [2:0] ibs_state;
- wire clear_state;
- setting_reg #(.my_addr(BASE+1)) sr
- (.clk(clk),.rst(rst),.strobe(set_stb),.addr(set_addr),
- .in(set_data),.out(),.changed(clear_state));
-
wire [31:0] error_policy;
setting_reg #(.my_addr(BASE+3)) sr_error_policy
(.clk(clk),.rst(rst),.strobe(set_stb),.addr(set_addr),
@@ -74,7 +69,7 @@ module vita_tx_control
reg send_error;
always @(posedge clk)
- if(reset | clear_state)
+ if(reset | clear)
begin
ibs_state <= IBS_IDLE;
send_error <= 0;
@@ -163,7 +158,7 @@ module vita_tx_control
assign error = send_error;
always @(posedge clk)
- if(reset)
+ if(reset | clear)
packet_consumed <= 0;
else
packet_consumed <= eop & sample_fifo_src_rdy_i & sample_fifo_dst_rdy_o;