Working branching.

This commit is contained in:
Sebastian Bugge 2024-11-11 17:49:10 +01:00
parent 23656db068
commit cfce1b6b54
Signed by: kaholaz
GPG key ID: 2EFFEDEE03519691
7 changed files with 31 additions and 23 deletions

View file

@ -20,9 +20,12 @@ class EXBarrier extends MultiIOModule {
new Bundle {
val in = Input(new EXBarrierIO)
val out = Output(new EXBarrierIO)
val flush = Output(Bool())
})
val delay = Reg(new EXBarrierIO)
delay := io.in
io.out := delay
io.flush := io.in.branch
}