mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Extended SeparateBranch to support both just branches and all control flow instructions.
This commit is contained in:
parent
bc935b1b3b
commit
9a90c15f37
@ -43,7 +43,8 @@ TrainLineNumberArray=($TrainLineNumbers)
|
|||||||
BeginLineNumberArray=($BeginLineNumbers)
|
BeginLineNumberArray=($BeginLineNumbers)
|
||||||
EndLineNumberArray=($EndLineNumbers)
|
EndLineNumberArray=($EndLineNumbers)
|
||||||
|
|
||||||
mkdir -p branch
|
OutputPath=${File%%.*}
|
||||||
|
mkdir -p $OutputPath
|
||||||
Length=${#EndLineNumberArray[@]}
|
Length=${#EndLineNumberArray[@]}
|
||||||
for i in $(seq 0 1 $((Length-1)))
|
for i in $(seq 0 1 $((Length-1)))
|
||||||
do
|
do
|
||||||
@ -51,5 +52,5 @@ do
|
|||||||
CurrTrain=$((${TrainLineNumberArray[$i]}+1))
|
CurrTrain=$((${TrainLineNumberArray[$i]}+1))
|
||||||
CurrEnd=$((${EndLineNumberArray[$i]}-1))
|
CurrEnd=$((${EndLineNumberArray[$i]}-1))
|
||||||
echo $CurrName, $CurrTrain, $CurrEnd
|
echo $CurrName, $CurrTrain, $CurrEnd
|
||||||
sed -n "${CurrTrain},${CurrEnd}p" $File > branch/${CurrName}_branch.log
|
sed -n "${CurrTrain},${CurrEnd}p" $File > $OutputPath/${CurrName}_${File}
|
||||||
done
|
done
|
||||||
|
@ -114,7 +114,20 @@ def main():
|
|||||||
grepstr="")
|
grepstr="")
|
||||||
configs.append(tc)
|
configs.append(tc)
|
||||||
|
|
||||||
if(args.target or args.iclass):
|
if(args.target):
|
||||||
|
# BTB and class size sweep
|
||||||
|
bpdSize = [6, 8, 10, 12, 14, 16]
|
||||||
|
for CurrBPSize in bpdSize:
|
||||||
|
name = 'BTB'+str(CurrBPSize)
|
||||||
|
configOptions = "+define+INSTR_CLASS_PRED=0 +define+BPRED_OVERRIDE +define+BPRED_TYPE=\`BP_GSHARE" + "+define+BPRED_SIZE=16" + "+define+RAS_SIZE=16+define+BTB_SIZE=" + str(CurrBPSize) + "+define+BTB_OVERRIDE"
|
||||||
|
tc = TestCase(
|
||||||
|
name=name,
|
||||||
|
variant="rv32gc",
|
||||||
|
cmd="vsim > {} -c <<!\ndo wally-batch.do rv32gc configOptions " + name + " embench " + configOptions,
|
||||||
|
grepstr="")
|
||||||
|
configs.append(tc)
|
||||||
|
|
||||||
|
if(args.iclass):
|
||||||
# BTB and class size sweep
|
# BTB and class size sweep
|
||||||
bpdSize = [6, 8, 10, 12, 14, 16]
|
bpdSize = [6, 8, 10, 12, 14, 16]
|
||||||
for CurrBPSize in bpdSize:
|
for CurrBPSize in bpdSize:
|
||||||
|
Loading…
Reference in New Issue
Block a user