Skip to content

Commit 2b55849

Browse files
committed
Ensuring that Q_srl RTL style FIFOs never have a depth of 1 when splitting fifos in the set_fifo_depths transformation as it is unsupported and leads to backpressure issues.
1 parent 9d7989b commit 2b55849

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/finn/transformation/fpgadataflow/set_fifo_depths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ def decompose_pow2(x):
539539
ret_final = []
540540
for cand_depth in ret_pass2:
541541
if cand_depth <= max_qsrl_depth:
542-
ret_final.append((cand_depth, "rtl"))
542+
ret_final.append((max(2,cand_depth), "rtl"))
543543
else:
544544
ret_final.append((cand_depth, "vivado"))
545545

0 commit comments

Comments
 (0)