mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fix wsim to use absolute path for ELF
This commit is contained in:
parent
f7797d6092
commit
4528b4ee2a
@ -39,7 +39,7 @@ def run_test_case(elf):
|
|||||||
if (fields[2] == "ref"):
|
if (fields[2] == "ref"):
|
||||||
shortelf = fields[1] + "_" + fields[3]
|
shortelf = fields[1] + "_" + fields[3]
|
||||||
else:
|
else:
|
||||||
shorelf = fields[2] + "_" + fields[3]
|
shortelf = fields[2] + "_" + fields[3]
|
||||||
# shortelf = fields[1] + "_" + fields[2]
|
# shortelf = fields[1] + "_" + fields[2]
|
||||||
logfile = WALLY + "/sim/" + args.sim + "/logs/" + shortelf + ".log"
|
logfile = WALLY + "/sim/" + args.sim + "/logs/" + shortelf + ".log"
|
||||||
cmd = "wsim " + args.config + " " + shortelf + " --elf " + elf + " --sim " + args.sim + " --lockstep > " + logfile # add coveerage flags if necessary
|
cmd = "wsim " + args.config + " " + shortelf + " --elf " + elf + " --sim " + args.sim + " --lockstep > " + logfile # add coveerage flags if necessary
|
||||||
|
2
bin/wsim
2
bin/wsim
@ -40,7 +40,7 @@ DirectorMode = 0
|
|||||||
WALLY = os.environ.get('WALLY')
|
WALLY = os.environ.get('WALLY')
|
||||||
|
|
||||||
if(os.path.isfile(args.elf)):
|
if(os.path.isfile(args.elf)):
|
||||||
ElfFile = "+ElfFile=" + args.elf
|
ElfFile = "+ElfFile=" + os.path.abspath(args.elf)
|
||||||
|
|
||||||
# Validate arguments
|
# Validate arguments
|
||||||
if (args.gui or args.coverage or args.fcov or args.lockstep):
|
if (args.gui or args.coverage or args.fcov or args.lockstep):
|
||||||
|
Loading…
Reference in New Issue
Block a user