From b108922de1aaffdd27fb4eb5054bfb2b55e82dca Mon Sep 17 00:00:00 2001 From: Yaman Umuroglu <maltanar@gmail.com> Date: Wed, 8 Apr 2020 23:19:28 +0100 Subject: [PATCH] [Analysis] make resource reporting format consistent --- src/finn/analysis/fpgadataflow/hls_synth_res_estimation.py | 2 +- src/finn/custom_op/fpgadataflow/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/finn/analysis/fpgadataflow/hls_synth_res_estimation.py b/src/finn/analysis/fpgadataflow/hls_synth_res_estimation.py index 0334c316b..d2fc9bd37 100644 --- a/src/finn/analysis/fpgadataflow/hls_synth_res_estimation.py +++ b/src/finn/analysis/fpgadataflow/hls_synth_res_estimation.py @@ -66,7 +66,7 @@ def hls_synth_res_estimation(model): for item in root.findall("AreaEstimates/Resources"): for child in item: res_dict[node.name].append( - ["{} : {}".format(child.tag, child.text)] + "{} : {}".format(child.tag, child.text) ) else: raise Exception( diff --git a/src/finn/custom_op/fpgadataflow/__init__.py b/src/finn/custom_op/fpgadataflow/__init__.py index 3a1d65a0c..fb302027b 100644 --- a/src/finn/custom_op/fpgadataflow/__init__.py +++ b/src/finn/custom_op/fpgadataflow/__init__.py @@ -81,8 +81,8 @@ class HLSCustomOp(CustomOp): """Returns summarized resource estimation of BRAMs and LUTs of the node.""" resources = [] - resources.append("BRAMs: " + str(self.bram_estimation())) - resources.append("LUTs: " + str(self.lut_estimation())) + resources.append("BRAM_18K: " + str(self.bram_estimation())) + resources.append("LUT: " + str(self.lut_estimation())) return resources def bram_estimation(self): -- GitLab