Skip to content

Commit

Permalink
add WithScratchpadsBaseAddress to alter rocket core dtim address
Browse files Browse the repository at this point in the history
  • Loading branch information
sequencer committed Aug 18, 2023
1 parent 7681e28 commit 49e8e92
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/scala/subsystem/Configs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,17 @@ class WithNoSlavePort extends Config((site, here, up) => {
case ExtIn => None
})

class WithScratchpadsBaseAddress(address: BigInt) extends Config((site, here, up) => {
case TilesLocated(InSubsystem) => up(TilesLocated(InSubsystem), site) map {
case tp: RocketTileAttachParams => tp.copy(tileParams = tp.tileParams.copy(
dcache = tp.tileParams.dcache.map(
_.copy(scratch = Some(address))
)
))
case t => t
}
})

class WithScratchpadsOnly 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 49e8e92

Please sign in to comment.