Skip to content

Commit

Permalink
Merge pull request #3474 from chipsalliance/dtim_addr
Browse files Browse the repository at this point in the history
add WithScratchpadsBaseAddress to alter rocket core dtim address
  • Loading branch information
sequencer authored Aug 18, 2023
2 parents 7681e28 + 49e8e92 commit eee99e8
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 eee99e8

Please sign in to comment.