aboutsummaryrefslogtreecommitdiffstats
path: root/usrp2/gpmc/gpmc_to_fifo_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_to_fifo_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_to_fifo_async.v')
-rw-r--r--usrp2/gpmc/gpmc_to_fifo_async.v10
1 files changed, 7 insertions, 3 deletions
diff --git a/usrp2/gpmc/gpmc_to_fifo_async.v b/usrp2/gpmc/gpmc_to_fifo_async.v
index 1df93f910..38f1165fc 100644
--- a/usrp2/gpmc/gpmc_to_fifo_async.v
+++ b/usrp2/gpmc/gpmc_to_fifo_async.v
@@ -5,10 +5,10 @@ module gpmc_to_fifo_async
input fifo_clk, input fifo_rst,
output reg [17:0] data_o, output reg src_rdy_o, input dst_rdy_i,
- input [15:0] frame_len, input [15:0] fifo_space, output fifo_ready,
+ input [15:0] frame_len, input [15:0] fifo_space, output reg fifo_ready,
output reg bus_error );
- reg [10:0] counter;
+ reg [15:0] counter;
// Synchronize the async control signals
reg [1:0] cs_del, we_del;
always @(posedge fifo_clk)
@@ -53,7 +53,11 @@ module gpmc_to_fifo_async
else
counter <= counter + 1;
- assign fifo_ready = first_write & (fifo_space > frame_len);
+ always @(posedge fifo_clk)
+ if(fifo_rst)
+ fifo_ready <= 0;
+ else
+ fifo_ready <= first_write & (fifo_space > frame_len);
always @(posedge fifo_clk)
if(fifo_rst)