Do memread stalling correctly.
This commit is contained in:
parent
4cfd8268fd
commit
23656db068
5 changed files with 25 additions and 12 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue