summaryrefslogtreecommitdiffstats
path: root/usrp2/gpmc/gpmc_async.v
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2010-04-23 14:43:29 -0700
committerMatt Ettus <matt@ettus.com>2010-04-23 14:43:29 -0700
commit5de2543e9cee644009d9ec15c19c70986df89594 (patch)
tree0af94f9801eaf6434a3b2ed35ee86856db8cd7d9 /usrp2/gpmc/gpmc_async.v
parent21ceee337d61ccb2f31edaefd5c7418e8025b4b1 (diff)
downloaduhd-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/gpmc_async.v')
-rw-r--r--usrp2/gpmc/gpmc_async.v9
1 files changed, 7 insertions, 2 deletions
diff --git a/usrp2/gpmc/gpmc_async.v b/usrp2/gpmc/gpmc_async.v
index b1a545907..02a00ce57 100644
--- a/usrp2/gpmc/gpmc_async.v
+++ b/usrp2/gpmc/gpmc_async.v
@@ -7,7 +7,7 @@ module gpmc_async
input EM_WAIT0, input EM_NCS4, input EM_NCS6, input EM_NWE, input EM_NOE,
// GPIOs for FIFO signalling
- output rx_have_data, output tx_have_space, output bus_error, input bus_reset,
+ output rx_have_data, output tx_have_space, output reg bus_error, input bus_reset,
// Wishbone signals
input wb_clk, input wb_rst,
@@ -31,7 +31,12 @@ module gpmc_async
assign EM_D = ~EM_output_enable ? 16'bz : ~EM_NCS4 ? EM_D_fifo : EM_D_wb;
wire bus_error_tx, bus_error_rx;
- assign bus_error = bus_error_tx | bus_error_rx;
+
+ always @(posedge fifo_clk)
+ if(fifo_rst)
+ bus_error <= 0;
+ else
+ bus_error <= bus_error_tx | bus_error_rx;
// CS4 is RAM_2PORT for DATA PATH (high-speed data)
// Writes go into one RAM, reads come from the other