Skip to content

Commit 201a169

Browse files
committed
Merge branch 'isa_time' into 'devel'
chore(mulitver): on end of simulation print running time See merge request ndk/ndk-fpga!139
2 parents f0908d6 + db17bba commit 201a169

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

build/scripts/multi_ver/multi_ver.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from os import system
1010
from importlib.machinery import SourceFileLoader
1111
from random import randint
12+
import time
1213

1314
FAIL = False
1415

@@ -200,11 +201,14 @@ def run_modelsim(fdo_file, test_name, manual=False, gui=False, coverage=False, e
200201
comb_name = " ".join(comb)
201202
print(f"Running combination: {key} ({comb_name})")
202203
if (not args.dry_run):
204+
vsim_time_start = time.time()
203205
result = run_modelsim(args.fdo_file, f'{test_name_prefix}{key}', coverage=args.coverage, env=env)
206+
vsim_time_stop = time.time()
207+
time_vsim_consumption = (vsim_time_stop - vsim_time_start)/60
204208
if result == 0: # detect failure
205-
print(f"Run SUCCEEDED ({test_name_prefix}{key})")
209+
print(f"Run SUCCEEDED ({test_name_prefix}{key})\n\ttime consumption: {time_vsim_consumption:.2f} min")
206210
else:
207-
print(f"Run FAILED ({test_name_prefix}{key})")
211+
print(f"Run FAILED ({test_name_prefix}{key})\n\ttime consumption: {time_vsim_consumption:.2f} min")
208212
FAIL = True
209213

210214
# backup transcript

comp/uvm/common/libprog.so

-6.25 KB
Binary file not shown.

comp/uvm/common/prog.o

-2.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)