Fix CfuPlugin/VfuPlugin fork duplication

https://github.com/google/CFU-Playground/issues/582
This commit is contained in:
Dolu1990 2022-05-16 10:36:21 +02:00
parent 8df2dcbd40
commit 78f0a7f13e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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