Fix CfuPlugin/VfuPlugin fork duplication
https://github.com/google/CFU-Playground/issues/582
This commit is contained in:
parent
8df2dcbd40
commit
78f0a7f13e
|
@ -193,7 +193,7 @@ class CfuPlugin(val stageCount : Int,
|
|||
arbitration.haltItself setWhen(scheduleWish && hazard)
|
||||
|
||||
val hold = RegInit(False) setWhen(schedule) clearWhen(bus.cmd.ready)
|
||||
val fired = RegInit(False) setWhen(bus.cmd.fire) clearWhen(!arbitration.isStuckByOthers)
|
||||
val fired = RegInit(False) setWhen(bus.cmd.fire) clearWhen(!arbitration.isStuck)
|
||||
insert(CFU_IN_FLIGHT) := schedule || hold || fired
|
||||
|
||||
bus.cmd.valid := (schedule || hold) && !fired
|
||||
|
|
|
@ -100,7 +100,7 @@ class VfuPlugin(val stageCount : Int,
|
|||
arbitration.haltItself setWhen(scheduleWish && hazard)
|
||||
|
||||
val hold = RegInit(False) setWhen(schedule) clearWhen(bus.cmd.ready)
|
||||
val fired = RegInit(False) setWhen(bus.cmd.fire) clearWhen(!arbitration.isStuckByOthers)
|
||||
val fired = RegInit(False) setWhen(bus.cmd.fire) clearWhen(!arbitration.isStuck)
|
||||
insert(VFU_IN_FLIGHT) := schedule || hold || fired
|
||||
|
||||
bus.cmd.valid := (schedule || hold) && !fired
|
||||
|
|
Loading…
Reference in New Issue