Do memread stalling correctly.

This commit is contained in:
Sebastian Bugge 2024-11-11 01:59:20 +01:00
parent 4cfd8268fd
commit 23656db068
Signed by: kaholaz
GPG key ID: 2EFFEDEE03519691
5 changed files with 25 additions and 12 deletions

View file

@ -27,9 +27,11 @@ class IDBarrier extends MultiIOModule {
new Bundle {
val in = Input(new IDBarrierIO)
val out = Output(new IDBarrierIO)
val stall = Output(Bool())
})
val delay = Reg(new IDBarrierIO)
delay := io.in
io.out := delay
io.stall := io.out.memRead
}