Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pre-release' into i2c-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bengineerd committed Apr 17, 2024
2 parents f2eea94 + 5db1100 commit 4148108
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions axi/axi-stream/rtl/AxiStreamFifoV2.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,12 @@ begin
-- Start output when a block or end of frame is available
elsif fifoValidLast = '1' or (VALID_THOLD_G /= 0 and fifoRdCount >= VALID_THOLD_G) then
fifoInFrame <= '1' after TPD_G;

-- Prevent the FIFO from locking up when frame deeper than what the U_Fifo can hold
elsif (fifoAFull = '1') then
fifoInFrame <= '1' after TPD_G;
end if;

end if;
end process;

Expand Down
7 changes: 7 additions & 0 deletions tests/test_AxiStreamFifoV2IpIntegrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,20 @@ def incrementing_payload(length):
##############################################################################

paramSweep = []
# Sweep through different master/slave data sizes
for sTdataByte in ['2','5','6']:
for mTdataByte in ['2','5','6']:
tmpDict = {
"M_TDATA_NUM_BYTES": mTdataByte,
"S_TDATA_NUM_BYTES": sTdataByte,
}
paramSweep.append(tmpDict)
# Check for the case where the (VALID_THOLD_G=0) and AXI stream frame is buffer than the FIFO
tmpDict = {
"VALID_THOLD": '0',
"FIFO_ADDR_WIDTH": '4',
}
paramSweep.append(tmpDict)

##############################################################################

Expand Down

0 comments on commit 4148108

Please sign in to comment.