Mostly working bpred launch script.

This commit is contained in:
Ross Thompson 2023-03-04 17:20:45 -06:00
parent 9c4a69bb0e
commit 00baa06234

View File

@ -46,31 +46,18 @@ configs = [
) )
] ]
configOptions = "+define+INSTR_CLASS_PRED=0 +define+BPRED_TYPE=\"BP_TWOBIT\" +define+BPRED_SIZE=6" bpdSize = [6, 8, 10, 12, 14, 16]
tc = TestCase( bpdType = ['twobit', 'gshare']
name="twobit6", for CurrBPType in bpdType:
variant="rv32gc", for CurrBPSize in bpdSize:
cmd="vsim > {} -c <<!\ndo wally-batch.do rv32gc configOptions twobit6 embench " + configOptions, name = CurrBPType+str(CurrBPSize)
grepstr="") configOptions = "+define+INSTR_CLASS_PRED=0 +define+BPRED_TYPE=\"BP_" + CurrBPType.upper() + "\" +define+BPRED_SIZE=" + str(CurrBPSize)
configs.append(tc) tc = TestCase(
name=name,
configOptions = "+define+INSTR_CLASS_PRED=0 +define+BPRED_TYPE=\"BP_TWOBIT\" +define+BPRED_SIZE=8" variant="rv32gc",
tc = TestCase( cmd="vsim > {} -c <<!\ndo wally-batch.do rv32gc configOptions " + name + " embench " + configOptions,
name="twobit8", grepstr="")
variant="rv32gc", configs.append(tc)
cmd="vsim > {} -c <<!\ndo wally-batch.do rv32gc configOptions twobit8 embench " + configOptions,
grepstr="")
configs.append(tc)
configOptions = "+define+INSTR_CLASS_PRED=0 +define+BPRED_TYPE=\"BP_TWOBIT\" +define+BPRED_SIZE=10"
tc = TestCase(
name="twobit10",
variant="rv32gc",
cmd="vsim > {} -c <<!\ndo wally-batch.do rv32gc configOptions twobit10 embench " + configOptions,
grepstr="")
configs.append(tc)
import os import os
from multiprocessing import Pool, TimeoutError from multiprocessing import Pool, TimeoutError