提交 769b146d 编写于 作者: L Lingrui98

Decode: isBr ->!notCFI

上级 82f81b9a
......@@ -42,7 +42,7 @@ class DecodeStage extends XSModule {
io.out(i).bits := decoderToDecBuffer(i)
val thisReady = io.out(i).ready && io.toBrq(i).ready
val thisBrqValid = io.in(i).valid && decoders(i).io.out.cf.brUpdate.pd.isBr && io.out(i).ready
val thisBrqValid = io.in(i).valid && !decoders(i).io.out.cf.brUpdate.pd.notCFI && io.out(i).ready
val thisOutValid = io.in(i).valid && io.toBrq(i).ready
io.in(i).ready := { if (i == 0) thisReady else io.in(i-1).ready && thisReady }
io.out(i).valid := { if (i == 0) thisOutValid else io.in(i-1).ready && thisOutValid }
......
......@@ -41,6 +41,7 @@ class PreDecodeInfo extends XSBundle { // 8 bit
def isBr = brType === BrType.branch
def isJal = brType === BrType.jal
def isJalr = brType === BrType.jalr
def notCFI = brType === BrType.notBr
}
class PreDecodeResp extends XSBundle {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册