Skip to content

Commit

Permalink
Merge pull request #3696 from moniriki/moniriki/rocket_cg_rocc_bug_fi…
Browse files Browse the repository at this point in the history
…x_issue3695

Rocket Core Clock Gate Bug Fix
  • Loading branch information
jerryz123 authored Nov 11, 2024
2 parents 1b9f433 + 2c260e2 commit 2fe6bb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/rocket/RocketCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,7 @@ class Rocket(tile: RocketTile)(implicit p: Parameters) extends CoreModule()(p)
!div.io.req.ready || // mul/div in flight
usingFPU.B && !io.fpu.fcsr_rdy || // long-latency FPU in flight
io.dmem.replay_next || // long-latency load replaying
id_rocc_busy || // RoCC command in flight
(!long_latency_stall && (ibuf.io.inst(0).valid || io.imem.resp.valid)) // instruction pending

assert(!(ex_pc_valid || mem_pc_valid || wb_pc_valid) || clock_en)
Expand Down

0 comments on commit 2fe6bb5

Please sign in to comment.