Skip to content

Commit

Permalink
DecodeStage: fix canAccept: when either rename or complex decoder can…
Browse files Browse the repository at this point in the history
… receive instructions, decode can receive instructions from ibuffer
  • Loading branch information
sinsanction authored and Tang-Haojin committed May 22, 2024
1 parent 42a750a commit 85326e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/xiangshan/backend/decode/DecodeStage.scala
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class DecodeStage(implicit p: Parameters) extends XSModule
// block vector inst when vtype is resuming
val hasVectorInst = VecInit(decoders.map(x => FuType.FuTypeOrR(x.io.deq.decodedInst.fuType, FuType.vecArithOrMem ++ FuType.vecVSET))).asUInt.orR

canAccept := !io.redirect && io.out.head.ready && decoderComp.io.in.ready && !io.isResumeVType
canAccept := !io.redirect && (io.out.head.ready || decoderComp.io.in.ready) && !io.isResumeVType

io.canAccept := canAccept

Expand Down

0 comments on commit 85326e8

Please sign in to comment.