mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 09:45:18 +00:00
Remove unnecessary parentheses in wsim
This commit is contained in:
parent
59bedb78c5
commit
8b2a053bd4
10
bin/wsim
10
bin/wsim
@ -121,19 +121,19 @@ def createDirs(sim):
|
||||
os.makedirs(os.path.join(WALLY, "sim", sim, d), exist_ok=True)
|
||||
|
||||
def runSim(args, flags, prefix):
|
||||
if (args.sim == "questa"):
|
||||
if args.sim == "questa":
|
||||
runQuesta(args, flags, prefix)
|
||||
elif (args.sim == "verilator"):
|
||||
elif args.sim == "verilator":
|
||||
runVerilator(args, flags, prefix)
|
||||
elif (args.sim == "vcs"):
|
||||
elif args.sim == "vcs":
|
||||
runVCS(args, flags, prefix)
|
||||
|
||||
def runQuesta(args, flags, prefix):
|
||||
# Force Questa to use 64-bit mode, sometimes it defaults to 32-bit even on 64-bit machines
|
||||
prefix = "MTI_VCO_MODE=64 " + prefix
|
||||
if (args.args != ""):
|
||||
if args.args != "":
|
||||
args.args = fr'--args \"{args.args}\"'
|
||||
if (args.params != ""):
|
||||
if args.params != "":
|
||||
args.params = fr'--params \"{args.params}\"'
|
||||
# Questa cannot accept more than 9 arguments. fcov implies lockstep
|
||||
cmd = f"do wally.do {args.config} {args.testsuite} {args.tb} {args.args} {args.params} {flags}"
|
||||
|
Loading…
Reference in New Issue
Block a user