From 7b80e1abf3613323d6601fc6883990f7de064952 Mon Sep 17 00:00:00 2001 From: Christoph Berganski Date: Fri, 14 Jun 2024 12:49:06 +0200 Subject: [PATCH] [StreamingDataWidthConverter_hls] Remove the other duplicate stream --- .../fpgadataflow/hls/streamingdatawidthconverter_hls.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/finn/custom_op/fpgadataflow/hls/streamingdatawidthconverter_hls.py b/src/finn/custom_op/fpgadataflow/hls/streamingdatawidthconverter_hls.py index 67d2f8b6d0..4619a1756b 100644 --- a/src/finn/custom_op/fpgadataflow/hls/streamingdatawidthconverter_hls.py +++ b/src/finn/custom_op/fpgadataflow/hls/streamingdatawidthconverter_hls.py @@ -78,12 +78,6 @@ def strm_decl(self): self.get_instream_width(), self.hls_sname(), self.hls_sname() ) ) - if self.needs_lcm(): - self.code_gen_dict["$STREAMDECLARATIONS$"].append( - 'hls::stream> intermediate ("intermediate");'.format( - self.get_iowidth_lcm() - ) - ) self.code_gen_dict["$STREAMDECLARATIONS$"].append( 'hls::stream> out_{} ("out_{}");'.format( self.get_outstream_width(), self.hls_sname(), self.hls_sname() @@ -95,6 +89,9 @@ def docompute(self): op = "StreamingDataWidthConverter_Batch" if self.needs_lcm(): self.code_gen_dict["$DOCOMPUTE$"] = [ + 'hls::stream> intermediate ("intermediate");'.format( + self.get_iowidth_lcm() + ), "%s(in0_%s, intermediate, numReps);" % (op, self.hls_sname()), "%s(intermediate, out_%s, numReps);"