Skip to content

Commit

Permalink
Merge pull request #130 from ucb-bar/spad-fix
Browse files Browse the repository at this point in the history
Fix clock domain/device name of periphery scratchpad
  • Loading branch information
jerryz123 authored Apr 10, 2021
2 parents f54dbf5 + fb29fc9 commit 6decad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/Scratchpad.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ trait CanHaveBackingScratchpad { this: BaseSubsystem =>
private val portName = "Backing-Scratchpad"

val spadOpt = p(BackingScratchpadKey).map { param =>
val spad = LazyModule(new TLRAM(address=AddressSet(param.base, param.mask), beatBytes=mbus.beatBytes))
val spad = mbus { LazyModule(new TLRAM(address=AddressSet(param.base, param.mask), beatBytes=mbus.beatBytes, devName=Some("backing-scratchpad"))) }
mbus.toVariableWidthSlave(Some(portName)) { spad.node }
spad
}
Expand Down

0 comments on commit 6decad8

Please sign in to comment.