summaryrefslogtreecommitdiffstats
path: root/usrp2/gpif
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-04-09 19:53:51 -0700
committerJosh Blum <josh@joshknows.com>2012-04-09 19:53:51 -0700
commit510632d8968eb95d383da4cf2d72184d66da0bee (patch)
treea2b49b87c7965854d3a7d56ae78738228ed6e1e7 /usrp2/gpif
parenta40bb6e9b79f1ad519848dff6054d32a1cda2380 (diff)
parentbcca51705e82b247175d4d9563ad9d7b35b51750 (diff)
downloaduhd-510632d8968eb95d383da4cf2d72184d66da0bee.tar.gz
uhd-510632d8968eb95d383da4cf2d72184d66da0bee.tar.bz2
uhd-510632d8968eb95d383da4cf2d72184d66da0bee.zip
Merge branch 'master' into next
Conflicts: usrp2/top/N2x0/u2plus_core.v usrp2/top/USRP2/u2_core.v
Diffstat (limited to 'usrp2/gpif')
-rw-r--r--usrp2/gpif/slave_fifo.v8
1 files changed, 4 insertions, 4 deletions
diff --git a/usrp2/gpif/slave_fifo.v b/usrp2/gpif/slave_fifo.v
index b1d642fca..e75f28913 100644
--- a/usrp2/gpif/slave_fifo.v
+++ b/usrp2/gpif/slave_fifo.v
@@ -150,7 +150,7 @@ module slave_fifo
STATE_DATA_RX:
begin
- if(data_rx_src_rdy && data_rx_dst_rdy && (transfer_count != data_transfer_size))
+ if(data_rx_src_rdy && data_rx_dst_rdy)
transfer_count <= transfer_count + 1;
else
state <= STATE_IDLE;
@@ -170,7 +170,7 @@ module slave_fifo
STATE_DATA_TX:
begin
- if(data_tx_dst_rdy && data_tx_src_rdy && (transfer_count != data_transfer_size))
+ if(data_tx_dst_rdy && data_tx_src_rdy)
transfer_count <= transfer_count + 1;
else
state <= STATE_IDLE;
@@ -197,8 +197,8 @@ module slave_fifo
// fifo signal assignments and enables
//enable fifos
- assign data_rx_dst_rdy = (state == STATE_DATA_RX) && ~FX2_DF;
- assign data_tx_src_rdy = (state == STATE_DATA_TX) && ~FX2_DE;
+ assign data_rx_dst_rdy = (state == STATE_DATA_RX) && ~FX2_DF && (transfer_count != data_transfer_size);
+ assign data_tx_src_rdy = (state == STATE_DATA_TX) && ~FX2_DE && (transfer_count != data_transfer_size);
assign ctrl_rx_dst_rdy = (state == STATE_CTRL_RX) && ~FX2_CF;
assign ctrl_tx_src_rdy = (state == STATE_CTRL_TX) && ~FX2_CE;