diff options
author | Matt Ettus <matt@ettus.com> | 2010-04-23 14:43:29 -0700 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2010-04-23 14:43:29 -0700 |
commit | 5de2543e9cee644009d9ec15c19c70986df89594 (patch) | |
tree | 0af94f9801eaf6434a3b2ed35ee86856db8cd7d9 /usrp2/gpmc/fifo_watcher.v | |
parent | 21ceee337d61ccb2f31edaefd5c7418e8025b4b1 (diff) | |
download | uhd-5de2543e9cee644009d9ec15c19c70986df89594.tar.gz uhd-5de2543e9cee644009d9ec15c19c70986df89594.tar.bz2 uhd-5de2543e9cee644009d9ec15c19c70986df89594.zip |
Register outputs to omap to prevent runt pulses from falsely triggering interrupts
Diffstat (limited to 'usrp2/gpmc/fifo_watcher.v')
-rw-r--r-- | usrp2/gpmc/fifo_watcher.v | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usrp2/gpmc/fifo_watcher.v b/usrp2/gpmc/fifo_watcher.v index da2051b04..7a3f00483 100644 --- a/usrp2/gpmc/fifo_watcher.v +++ b/usrp2/gpmc/fifo_watcher.v @@ -4,7 +4,7 @@ module fifo_watcher (input clk, input reset, input clear, input src_rdy1, input dst_rdy1, input sof1, input eof1, input src_rdy2, input dst_rdy2, input sof2, input eof2, - output have_packet, output [15:0] length, output reg bus_error); + output reg have_packet, output [15:0] length, output reg bus_error); wire write = src_rdy1 & dst_rdy1 & eof1; wire read = src_rdy2 & dst_rdy2 & eof2; @@ -34,7 +34,11 @@ module fifo_watcher bus_error <= 1; reg in_packet; - assign have_packet = have_packet_int & ~in_packet; + always @(posedge clk) + if(reset | clear) + have_packet <= 0; + else + have_packet <= have_packet_int & ~in_packet; always @(posedge clk) if(reset | clear) |