@@ -319,7 +319,7 @@ def addTestsByDir(testDir, config, sim, coverStr, configs, lockstepMode=0, breke
319319 sim_logdir = f"{ regressionDir } /{ sim } /logs/"
320320 cmdPrefix = f"wsim --sim { sim } { coverStr } { '--lockstep' if lockstepMode else '' } { config } "
321321 # fcov/ccov only runs on WALLY-COV-ALL.elf files; other lockstep runs on all files
322- fileStart = "WALLY-COV-ALL" if "cvw-arch-verif/tests" in testDir and "priv" not in testDir else ""
322+ fileStart = "WALLY-COV-ALL" if "cvw-arch-verif/tests" in testDir and "priv" not in testDir else "ref" if "riscv-arch-test" in testDir else " "
323323 fileEnd = ".elf"
324324 if lockstepMode :
325325 gs = "Mismatches : 0"
@@ -438,11 +438,19 @@ def selectTests(args, sims, coverStr):
438438 addTestsByDir (f"{ archVerifDir } /tests/lockstep/rv64/" , "rv64gc" , coveragesim , coverStr , configs )
439439 addTestsByDir (f"{ archVerifDir } /tests/lockstep/priv/rv64/" , "rv64gc" , coveragesim , coverStr , configs )
440440 addTestsByDir (WALLY + "/tests/coverage/" , "rv64gc" , coveragesim , coverStr , configs )
441+ # Extra tests from riscv-arch-test that should be run as part of the functional coverage suite
442+ addTestsByDir (f"{ WALLY } /tests/riscof/work/riscv-arch-test/rv32i_m/vm_sv32" , "rv32gc" , coveragesim , coverStr , configs )
443+ addTestsByDir (f"{ WALLY } /tests/riscof/work/riscv-arch-test/rv32i_m/pmp32" , "rv32gc" , coveragesim , coverStr , configs )
444+ addTestsByDir (f"{ WALLY } /tests/riscof/work/riscv-arch-test/rv64i_m/pmp64" , "rv64gc" , coveragesim , coverStr , configs )
441445 elif args .fcov : # run tests in lockstep in functional coverage mode
442446 addTestsByDir (f"{ archVerifDir } /tests/lockstep/rv32/" , "rv32gc" , coveragesim , coverStr , configs , lockstepMode = 1 )
443447 addTestsByDir (f"{ archVerifDir } /tests/lockstep/rv64/" , "rv64gc" , coveragesim , coverStr , configs , lockstepMode = 1 )
444448 addTestsByDir (f"{ archVerifDir } /tests/lockstep/priv/rv32/" , "rv32gc" , coveragesim , coverStr , configs , lockstepMode = 1 )
445449 addTestsByDir (f"{ archVerifDir } /tests/lockstep/priv/rv64/" , "rv64gc" , coveragesim , coverStr , configs , lockstepMode = 1 )
450+ # Extra tests from riscv-arch-test that should be run as part of the functional coverage suite
451+ addTestsByDir (f"{ WALLY } /tests/riscof/work/riscv-arch-test/rv32i_m/vm_sv32" , "rv32gc" , coveragesim , coverStr , configs , lockstepMode = 1 )
452+ # addTestsByDir(f"{WALLY}/tests/riscof/work/riscv-arch-test/rv32i_m/pmp32", "rv32gc", coveragesim, coverStr, configs, lockstepMode=1) TODO: Add when working in lockstep
453+ # addTestsByDir(f"{WALLY}/tests/riscof/work/riscv-arch-test/rv64i_m/pmp64", "rv64gc", coveragesim, coverStr, configs, lockstepMode=1) TODO: Add when working in lockstep
446454 elif args .breker :
447455 addTestsByDir (WALLY + "/tests/breker/work" , "breker" , "questa" , coverStr , configs , brekerMode = 1 )
448456 elif not args .testfloat :
0 commit comments