Lower branch cycles to two.
This commit is contained in:
parent
cfce1b6b54
commit
9e12c60d27
4 changed files with 10 additions and 6 deletions
|
|
@ -11,7 +11,6 @@ class EXBarrierIO extends Bundle {
|
|||
val writeEnable = Bool()
|
||||
val memRead = Bool()
|
||||
val memWrite = Bool()
|
||||
val branch = Bool()
|
||||
val jump = Bool()
|
||||
}
|
||||
|
||||
|
|
@ -21,11 +20,16 @@ class EXBarrier extends MultiIOModule {
|
|||
val in = Input(new EXBarrierIO)
|
||||
val out = Output(new EXBarrierIO)
|
||||
val flush = Output(Bool())
|
||||
val branchAddr = Output(UInt(32.W))
|
||||
val branchIn = Input(Bool())
|
||||
val branchOut = Output(Bool())
|
||||
})
|
||||
|
||||
val delay = Reg(new EXBarrierIO)
|
||||
delay := io.in
|
||||
io.out := delay
|
||||
|
||||
io.flush := io.in.branch
|
||||
io.flush := io.branchIn
|
||||
io.branchOut := io.branchIn
|
||||
io.branchAddr := io.in.ALUResult
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue