Skip to content

Commit

Permalink
update debug rob flag only on enable
Browse files Browse the repository at this point in the history
  • Loading branch information
joonho3020 committed Jan 26, 2024
1 parent 377aa14 commit fd2316d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/scala/subsystem/Configs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,12 @@ class WithFPUWithoutDivSqrt extends Config((site, here, up) => {
}
})

class WithRocketDebugROB(enable: Boolean = false, size: Int = 0) extends Config((site, here, up) => {
class WithRocketDebugROB(enable: Boolean = true, size: Int = 0) extends Config((site, here, up) => {
case TilesLocated(InSubsystem) => up(TilesLocated(InSubsystem), site) map {
case tp: RocketTileAttachParams => tp.copy(tileParams = tp.tileParams.copy(
core = tp.tileParams.core.copy(debugROB = Some(DebugROBParams(size)))
))
case tp: RocketTileAttachParams if (enable) =>
tp.copy(tileParams = tp.tileParams.copy(
core = tp.tileParams.core.copy(debugROB = Some(DebugROBParams(size)))
))
}
})

Expand Down

0 comments on commit fd2316d

Please sign in to comment.