muldiviterative: fix build for short pipelines
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
fdc95debef
commit
b8b053e706
|
@ -69,8 +69,9 @@ class MulDivIterativePlugin(genMul : Boolean = true,
|
||||||
import pipeline.config._
|
import pipeline.config._
|
||||||
if(!genMul && !genDiv) return
|
if(!genMul && !genDiv) return
|
||||||
|
|
||||||
memory plug new Area {
|
val flushStage = if(memory != null) memory else execute
|
||||||
import memory._
|
flushStage plug new Area {
|
||||||
|
import flushStage._
|
||||||
|
|
||||||
//Shared ressources
|
//Shared ressources
|
||||||
val rs1 = Reg(UInt(33 bits))
|
val rs1 = Reg(UInt(33 bits))
|
||||||
|
|
Loading…
Reference in New Issue