Skip to content

Commit

Permalink
[rocketv] set bypass hazard for vector.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Aug 20, 2024
1 parent f6f6c36 commit da3d726
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rocketv/src/RocketCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,8 @@ class Rocket(val parameter: RocketParameter)
exRegDecodeOutput(parameter.decoderParameter.mem) ||
Option.when(usingMulDiv && pipelinedMul)(exRegDecodeOutput(parameter.decoderParameter.mul)).getOrElse(false.B) ||
Option.when(usingMulDiv)(exRegDecodeOutput(parameter.decoderParameter.div)).getOrElse(false.B) ||
Option.when(usingFPU)(exRegDecodeOutput(parameter.decoderParameter.fp)).getOrElse(false.B)
Option.when(usingFPU)(exRegDecodeOutput(parameter.decoderParameter.fp)).getOrElse(false.B) ||
Option.when(usingVector)(exRegDecodeOutput(parameter.decoderParameter.vector)).getOrElse(false.B)
val dataHazardEx: Bool = exRegDecodeOutput(parameter.decoderParameter.wxd) && checkHazards(hazardTargets, _ === exWaddr)
val fpDataHazardEx: Option[Bool] = fpHazardTargets.map(fpHazardTargets =>
idDecodeOutput(parameter.decoderParameter.fp) && exRegDecodeOutput(parameter.decoderParameter.wfd) && checkHazards(fpHazardTargets, _ === exWaddr)
Expand All @@ -1218,7 +1219,8 @@ class Rocket(val parameter: RocketParameter)
memRegDecodeOutput(parameter.decoderParameter.mem) && memMemCmdBh ||
Option.when(usingMulDiv && pipelinedMul)(memRegDecodeOutput(parameter.decoderParameter.mul)).getOrElse(false.B) ||
Option.when(usingMulDiv)(memRegDecodeOutput(parameter.decoderParameter.div)).getOrElse(false.B) ||
Option.when(usingFPU)(memRegDecodeOutput(parameter.decoderParameter.fp)).getOrElse(false.B)
Option.when(usingFPU)(memRegDecodeOutput(parameter.decoderParameter.fp)).getOrElse(false.B) ||
Option.when(usingVector)(memRegDecodeOutput(parameter.decoderParameter.vector)).getOrElse(false.B)
val dataHazardMem: Bool = memRegDecodeOutput(parameter.decoderParameter.wxd) && checkHazards(hazardTargets, _ === memWaddr)
val fpDataHazardMem: Option[Bool] = fpHazardTargets.map(fpHazardTargets =>
idDecodeOutput(parameter.decoderParameter.fp) &&
Expand Down

0 comments on commit da3d726

Please sign in to comment.