Skip to content

Commit

Permalink
toolchain: add report_methodology to runtimes
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
  • Loading branch information
acomodi committed May 14, 2020
1 parent 8ad57f9 commit 8f8bde7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def get_runtimes(self):
'fasm': ['fasm'],
'checkpoint': ['open_checkpoint'],
'bitstream': ['write_bitstream', 'bitstream'],
'reports': ['report_power'],
'reports': ['report_power', 'report_methodology'],
'total': ['total'],
'nop': ['nop']
}
Expand All @@ -243,7 +243,12 @@ def get_standard_runtime(runtime):

for k, v in self.runtimes.items():
runtime = get_standard_runtime(k)
runtimes[runtime] = round(v, 3)

value = round(v, 3)

# Add value to existing run time category if already present
runtimes[runtime] = runtimes[runtime] + value if runtime[
runtime] else value

return runtimes

Expand Down

0 comments on commit 8f8bde7

Please sign in to comment.