Add Mul16Plugin to regression tests

Fix missing MulSimplePlugin in regressions tests
This commit is contained in:
Charles Papon 2019-10-21 12:53:53 +02:00
parent 8091a872f3
commit 67028cdb48
1 changed files with 17 additions and 4 deletions

View File

@ -102,7 +102,7 @@ class MulDivDimension extends VexRiscvDimension("MulDiv") {
new VexRiscvPosition("MulDivFpgaSimple") { l = new VexRiscvPosition("MulDivFpgaSimple") {
override def testParam = "MUL=yes DIV=yes" override def testParam = "MUL=yes DIV=yes"
override def applyOn(config: VexRiscvConfig): Unit = { override def applyOn(config: VexRiscvConfig): Unit = {
config.plugins += new MulSimplePlugin config.plugins += new MulSimplePlugin
@ -115,6 +115,19 @@ class MulDivDimension extends VexRiscvDimension("MulDiv") {
} }
} :: l } :: l
if(!noMemory && !noWriteBack) l = new VexRiscvPosition("MulDivFpga16BitsDsp") {
override def testParam = "MUL=yes DIV=yes"
override def applyOn(config: VexRiscvConfig): Unit = {
config.plugins += new Mul16Plugin
config.plugins += new MulDivIterativePlugin(
genMul = false,
genDiv = true,
mulUnrollFactor = 32,
divUnrollFactor = 1
)
}
} :: l
if(!noMemory) { if(!noMemory) {
l = new VexRiscvPosition("MulDivAsic") { l = new VexRiscvPosition("MulDivAsic") {
override def testParam = "MUL=yes DIV=yes" override def testParam = "MUL=yes DIV=yes"
@ -619,9 +632,9 @@ class TestIndividualFeatures extends FunSuite {
val seed = sys.env.getOrElse("VEXRISCV_REGRESSION_SEED", Random.nextLong().toString).toLong val seed = sys.env.getOrElse("VEXRISCV_REGRESSION_SEED", Random.nextLong().toString).toLong
// //
// val testId = Some(mutable.HashSet(3,4,9,11,13,16,18,19,20,21)) // val testId = Some(mutable.HashSet(3,4,9,11,13,16,18,19,20,21))
// val testId = Some(mutable.HashSet(22)) // val testId = Some(mutable.HashSet(11))
// val testId = Some(mutable.HashSet(22, 33 , 38, 47, 48)) // val testId = Some(mutable.HashSet(4, 11))
// val seed = 5426556825163943143l // val seed = 6592877339343561798l
val rand = new Random(seed) val rand = new Random(seed)