Skip to content

Commit

Permalink
Add WithoutDiv Config
Browse files Browse the repository at this point in the history
Signed-off-by: nananapo <kanapo.go@gmail.com>
  • Loading branch information
nananapo committed Jul 10, 2023
1 parent b8c5cef commit 2ced089
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 2ced089

Please sign in to comment.