mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 17:55:19 +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)
|
os.makedirs(os.path.join(WALLY, "sim", sim, d), exist_ok=True)
|
||||||
|
|
||||||
def runSim(args, flags, prefix):
|
def runSim(args, flags, prefix):
|
||||||
if (args.sim == "questa"):
|
if args.sim == "questa":
|
||||||
runQuesta(args, flags, prefix)
|
runQuesta(args, flags, prefix)
|
||||||
elif (args.sim == "verilator"):
|
elif args.sim == "verilator":
|
||||||
runVerilator(args, flags, prefix)
|
runVerilator(args, flags, prefix)
|
||||||
elif (args.sim == "vcs"):
|
elif args.sim == "vcs":
|
||||||
runVCS(args, flags, prefix)
|
runVCS(args, flags, prefix)
|
||||||
|
|
||||||
def runQuesta(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
|
# Force Questa to use 64-bit mode, sometimes it defaults to 32-bit even on 64-bit machines
|
||||||
prefix = "MTI_VCO_MODE=64 " + prefix
|
prefix = "MTI_VCO_MODE=64 " + prefix
|
||||||
if (args.args != ""):
|
if args.args != "":
|
||||||
args.args = fr'--args \"{args.args}\"'
|
args.args = fr'--args \"{args.args}\"'
|
||||||
if (args.params != ""):
|
if args.params != "":
|
||||||
args.params = fr'--params \"{args.params}\"'
|
args.params = fr'--params \"{args.params}\"'
|
||||||
# Questa cannot accept more than 9 arguments. fcov implies lockstep
|
# 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}"
|
cmd = f"do wally.do {args.config} {args.testsuite} {args.tb} {args.args} {args.params} {flags}"
|
||||||
|
Loading…
Reference in New Issue
Block a user