mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Regression fully running with Verilator, which is now the default and much faster than the others
This commit is contained in:
parent
31b54fb247
commit
29c94e8abb
@ -313,8 +313,8 @@ os.chdir(regressionDir)
|
|||||||
|
|
||||||
coveragesim = "questa" # Questa is required for code/functional coverage
|
coveragesim = "questa" # Questa is required for code/functional coverage
|
||||||
#defaultsim = "vcs" # Default simulator for all other tests; change to Verilator when flow is ready
|
#defaultsim = "vcs" # Default simulator for all other tests; change to Verilator when flow is ready
|
||||||
defaultsim = "questa" # Default simulator for all other tests; change to Verilator when flow is ready
|
#defaultsim = "questa" # Default simulator for all other tests; change to Verilator when flow is ready
|
||||||
#defaultsim = "verilator" # Default simulator for all other tests
|
defaultsim = "verilator" # Default simulator for all other tests
|
||||||
|
|
||||||
coverage = '--coverage' in sys.argv
|
coverage = '--coverage' in sys.argv
|
||||||
fp = '--fp' in sys.argv
|
fp = '--fp' in sys.argv
|
||||||
@ -323,9 +323,8 @@ testfloat = '--testfloat' in sys.argv
|
|||||||
|
|
||||||
if (nightly):
|
if (nightly):
|
||||||
nightMode = "--nightly";
|
nightMode = "--nightly";
|
||||||
# sims = [defaultsim]
|
# sims = [defaultsim] # uncomment to use only the default simulator
|
||||||
sims = ["questa", "vcs"]
|
sims = ["questa", "verilator", "vcs"] # uncomment to exercise all simulators
|
||||||
# sims = ["questa", "verilator", "vcs"] # *** uncomment to exercise all simulators
|
|
||||||
else:
|
else:
|
||||||
nightMode = ""
|
nightMode = ""
|
||||||
sims = [defaultsim]
|
sims = [defaultsim]
|
||||||
@ -352,6 +351,7 @@ if (coverage): # only run RV64GC tests on Questa in coverage mode
|
|||||||
addTests(tests64gc_fp, "questa")
|
addTests(tests64gc_fp, "questa")
|
||||||
else:
|
else:
|
||||||
for sim in sims:
|
for sim in sims:
|
||||||
|
addTests(tests_buildrootshort, sim)
|
||||||
addTests(tests, sim)
|
addTests(tests, sim)
|
||||||
addTests(tests64gc_nofp, sim)
|
addTests(tests64gc_nofp, sim)
|
||||||
addTests(tests64gc_fp, sim)
|
addTests(tests64gc_fp, sim)
|
||||||
@ -359,10 +359,7 @@ else:
|
|||||||
# run derivative configurations in nightly regression
|
# run derivative configurations in nightly regression
|
||||||
if (nightly):
|
if (nightly):
|
||||||
# addTests(tests_buildrootboot, defaultsim)
|
# addTests(tests_buildrootboot, defaultsim)
|
||||||
addTests(tests_buildrootshort, defaultsim)
|
|
||||||
addTests(derivconfigtests, defaultsim)
|
addTests(derivconfigtests, defaultsim)
|
||||||
else:
|
|
||||||
addTests(tests_buildrootshort, defaultsim)
|
|
||||||
|
|
||||||
# testfloat tests
|
# testfloat tests
|
||||||
if (testfloat): # for testfloat alone, just run testfloat tests
|
if (testfloat): # for testfloat alone, just run testfloat tests
|
||||||
@ -433,9 +430,10 @@ def main():
|
|||||||
"""Run the tests and count the failures"""
|
"""Run the tests and count the failures"""
|
||||||
global configs, coverage
|
global configs, coverage
|
||||||
os.chdir(regressionDir)
|
os.chdir(regressionDir)
|
||||||
os.system('rm -rf questa/wkdir')
|
dirs = ["questa/logs", "questa/wkdir", "verilator/logs", "verilator/wkdir", "vcs/logs", "vcs/wkdir"]
|
||||||
for d in ["questa/logs", "questa/wkdir", "verilator/logs", "verilator/wkdir", "vcs/logs", "vcs/wkdir"]:
|
for d in dirs:
|
||||||
try:
|
try:
|
||||||
|
os.system('rm -rf %s' % d)
|
||||||
os.mkdir(d)
|
os.mkdir(d)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user