diff --git a/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py b/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py index 16ec6587861c7de6829f812fb539d6fc40c2ece4..27e293620c91775acf13ebb68c97c79902bc0c04 100644 --- a/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py +++ b/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py @@ -408,9 +408,14 @@ class StreamingDataWidthConverter_Batch(HLSCustomOp): ) cmd.append( "set_property -dict " - "[list CONFIG.S_TDATA_NUM_BYTES.VALUE_SRC PROPAGATED] " + "[list CONFIG.S_TDATA_NUM_BYTES.VALUE_SRC USER] " "[get_bd_cells /%s/dwc]" % node_name ) + cmd.append( + "set_property -dict " + "[list CONFIG.S_TDATA_NUM_BYTES {%d}] [get_bd_cells /%s/dwc]" + % (np.ceil(self.get_instream_width() / 8), node_name) + ) cmd.append( "set_property -dict " "[list CONFIG.M_TDATA_NUM_BYTES {%d}] [get_bd_cells /%s/dwc]"