Add MulSimplePlugin regressions

This commit is contained in:
Charles Papon 2019-09-21 12:49:46 +02:00
parent b8b053e706
commit e8236dfebe
1 changed files with 16 additions and 0 deletions

View File

@ -99,6 +99,22 @@ class MulDivDimension extends VexRiscvDimension("MulDiv") {
val noWriteBack = universes.contains(VexRiscvUniverse.NO_WRITEBACK) val noWriteBack = universes.contains(VexRiscvUniverse.NO_WRITEBACK)
var l = List[VexRiscvPosition]() var l = List[VexRiscvPosition]()
new VexRiscvPosition("MulDivFpgaSimple") {
override def testParam = "MUL=yes DIV=yes"
override def applyOn(config: VexRiscvConfig): Unit = {
config.plugins += new MulSimplePlugin
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"