From b9300a8d74897b4ca033d201f1a4721f407d313a Mon Sep 17 00:00:00 2001 From: Tobi-Alonso <tobi.alonso@gmail.com> Date: Thu, 3 Dec 2020 17:49:53 +0000 Subject: [PATCH] Set vivado DWC input width explicitly as by default a block will have a 1 byte input which probably will cause a bottleneck (#254) --- .../fpgadataflow/streamingdatawidthconverter_batch.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py b/src/finn/custom_op/fpgadataflow/streamingdatawidthconverter_batch.py index 16ec65878..27e293620 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]" -- GitLab