diff options
author | Josh Blum <josh@joshknows.com> | 2012-04-01 23:22:39 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-04-01 23:22:39 -0700 |
commit | 4c111800a139a544f9280e1a7b114c027c55a89e (patch) | |
tree | f7e8062e2cda509d4583d96b55cac95cd514f911 /usrp2/gpif | |
parent | 842c54ecb5f20d7787ccd8f6034755a92ed67b5f (diff) | |
download | uhd-4c111800a139a544f9280e1a7b114c027c55a89e.tar.gz uhd-4c111800a139a544f9280e1a7b114c027c55a89e.tar.bz2 uhd-4c111800a139a544f9280e1a7b114c027c55a89e.zip |
b100: fix slave fifo data xfer exit condition
When exiting the read/write data state,
when the transfer count maxes out/peaks,
the fifo read/write signals were getting this
condition the cycle after with the state change.
Diffstat (limited to 'usrp2/gpif')
-rw-r--r-- | usrp2/gpif/slave_fifo.v | 8 |
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; |