mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-22 05:07:21 -04:00
report_benchmark.py: Detecting "mcycle" without CSR pseudo-code (#1786)
This commit is contained in:
parent
fa101fae7a
commit
dc633a282c
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ with open(path, 'r') as f:
|
|||
|
||||
stopwatch = []
|
||||
for index, line in enumerate(log):
|
||||
if line.split()[-1] == 'mcycle':
|
||||
if line.split()[-1] == 'mcycle' or line.split()[-2] == 'mcycle,':
|
||||
stopwatch.append(int(log[index + 1].split()[-1], 16))
|
||||
# There might be > 2 matches, we use the two at the center
|
||||
N = len(stopwatch)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue