File tree 1 file changed +4
-0
lines changed
src/finn/transformation/fpgadataflow
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,8 @@ def apply(self, model):
202
202
fifo_depth = n0 .get_nodeattr ("inFIFODepths" )[inp_ind ]
203
203
204
204
if fifo_depth > 2 or self .create_shallow_fifos :
205
+ # Ensure that create shallow fifo condition doesn't create depth=1 fifos
206
+ fifo_depth = max (fifo_depth , 2 )
205
207
# create fifo node
206
208
fifo_output_tensor = oh .make_tensor_value_info (
207
209
model .make_new_valueinfo_name (),
@@ -264,6 +266,8 @@ def apply(self, model):
264
266
fifo_depth = n0 .get_nodeattr ("outFIFODepths" )[out_ind ]
265
267
266
268
if fifo_depth > 2 or self .create_shallow_fifos :
269
+ # Ensure that create shallow fifo condition doesn't create depth=1 fifos
270
+ fifo_depth = max (fifo_depth , 2 )
267
271
# create fifo node
268
272
fifo_input_tensor = oh .make_tensor_value_info (
269
273
model .make_new_valueinfo_name (),
You can’t perform that action at this time.
0 commit comments