Skip to content
Snippets Groups Projects
Commit b108922d authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[Analysis] make resource reporting format consistent

parent 40fcb5ea
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ def hls_synth_res_estimation(model): ...@@ -66,7 +66,7 @@ def hls_synth_res_estimation(model):
for item in root.findall("AreaEstimates/Resources"): for item in root.findall("AreaEstimates/Resources"):
for child in item: for child in item:
res_dict[node.name].append( res_dict[node.name].append(
["{} : {}".format(child.tag, child.text)] "{} : {}".format(child.tag, child.text)
) )
else: else:
raise Exception( raise Exception(
......
...@@ -81,8 +81,8 @@ class HLSCustomOp(CustomOp): ...@@ -81,8 +81,8 @@ class HLSCustomOp(CustomOp):
"""Returns summarized resource estimation of BRAMs and LUTs """Returns summarized resource estimation of BRAMs and LUTs
of the node.""" of the node."""
resources = [] resources = []
resources.append("BRAMs: " + str(self.bram_estimation())) resources.append("BRAM_18K: " + str(self.bram_estimation()))
resources.append("LUTs: " + str(self.lut_estimation())) resources.append("LUT: " + str(self.lut_estimation()))
return resources return resources
def bram_estimation(self): def bram_estimation(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment