fpu add schedulerM2sPipe optino

This commit is contained in:
Dolu1990 2021-03-18 11:09:26 +01:00
parent 099dea743b
commit 6956db2b21
2 changed files with 2 additions and 1 deletions

View File

@ -267,7 +267,7 @@ case class FpuCore( portCount : Int, p : FpuParameter) extends Component{
val cmdArbiter = new Area{
val arbiter = StreamArbiterFactory.noLock.roundRobin.build(FpuCmd(p), portCount)
arbiter.io.inputs <> Vec(scheduler.map(_.output))
arbiter.io.inputs <> Vec(scheduler.map(_.output.pipelined(m2s = p.schedulerM2sPipe)))
val output = arbiter.io.output.swapPayload(RfReadInput())
output.source := arbiter.io.chosen

View File

@ -119,6 +119,7 @@ case class FpuParameter( withDouble : Boolean,
asyncRegFile : Boolean = false,
mulWidthA : Int = 18,
mulWidthB : Int = 18,
schedulerM2sPipe : Boolean = false,
sim : Boolean = false,
withAdd : Boolean = true,
withMul : Boolean = true,