Skip to content

Commit

Permalink
Add WithoutDiv Config
Browse files Browse the repository at this point in the history
Signed-off-by: kanataso <[email protected]>
  • Loading branch information
nananapo committed Jul 17, 2023
1 parent cb57d2d commit a5b829a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/scala/subsystem/Configs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,15 @@ class WithoutMulDiv extends Config((site, here, up) => {
}
})

class WithoutDiv 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(
mulDiv = tp.tileParams.core.mulDiv.map(_.copy(divEnabled = false)))))
case t => t
}
})

class WithoutFPU extends Config((site, here, up) => {
case TilesLocated(InSubsystem) => up(TilesLocated(InSubsystem), site) map {
case tp: RocketTileAttachParams => tp.copy(tileParams = tp.tileParams.copy(
Expand Down

0 comments on commit a5b829a

Please sign in to comment.