mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fixed bug so that wsim can start logging after a given number of instructions.
This commit is contained in:
parent
84946919a4
commit
f4626d5b06
12
bin/wsim
12
bin/wsim
@ -67,15 +67,19 @@ cd = "cd $WALLY/sim/" +args.sim
|
|||||||
# functional coverage and imply it.
|
# functional coverage and imply it.
|
||||||
if (args.sim == "questa"):
|
if (args.sim == "questa"):
|
||||||
if (args.lockstep):
|
if (args.lockstep):
|
||||||
prefix = "IMPERAS_TOOLS=" + WALLY + "/sim/imperas.ic" # OTHERFLAGS=\"+IDV_TRACE2LOG=" + str(args.locksteplog) + " +IDV_TRACE2COV=" + str(args.covlog) + "\"";
|
prefix = "IMPERAS_TOOLS=" + WALLY + "/sim/imperas.ic"
|
||||||
|
if(int(args.locksteplog) >= 1): EnableLog = 1
|
||||||
|
else: EnableLog = 0
|
||||||
|
if(args.locksteplog != 0): ImperasPlusArgs = " +IDV_TRACE2LOG=" + str(EnableLog) + " +IDV_TRACE2LOG_AFTER=" + str(args.locksteplog)
|
||||||
|
else: ImperasPlusArgs = ""
|
||||||
if(args.fcov):
|
if(args.fcov):
|
||||||
CovEnableStr = "1" if int(args.covlog) > 0 else "0";
|
CovEnableStr = "1" if int(args.covlog) > 0 else "0";
|
||||||
#ImperasPlusArgs = "+IDV_TRACE2LOG=" + str(args.locksteplog) + " +IDV_TRACE2COV=" + str(args.covlog) + " +TRACE2COV_ENABLE=" + CovEnableStr;
|
if(args.covlog >= 1): EnableLog = 1
|
||||||
ImperasPlusArgs = " +IDV_TRACE2COV=" + str(args.covlog) + " +TRACE2COV_ENABLE=" + CovEnableStr;
|
else: EnableLog = 0
|
||||||
|
ImperasPlusArgs = " +IDV_TRACE2COV=" + str(EnableLog) + " +TRACE2LOG_AFTER=" + str(args.covlog) + " +TRACE2COV_ENABLE=" + CovEnableStr;
|
||||||
suffix = ""
|
suffix = ""
|
||||||
else:
|
else:
|
||||||
CovEnableStr = ""
|
CovEnableStr = ""
|
||||||
ImperasPlusArgs = "";
|
|
||||||
suffix = "--lockstep"
|
suffix = "--lockstep"
|
||||||
else:
|
else:
|
||||||
prefix = ""
|
prefix = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user