Debug: make address configurable
This commit is contained in:
parent
c3dacca39a
commit
bddfa4d69b
@ -51,7 +51,7 @@ case class CoreplexConfig(
|
||||
abstract class BaseCoreplex(c: CoreplexConfig)(implicit val p: Parameters) extends LazyModule with HasCoreplexParameters {
|
||||
|
||||
val debugLegacy = LazyModule(new TLLegacy()(outerMMIOParams))
|
||||
val debugModule = LazyModule(new TLDebugModule(p(XLen)/8))
|
||||
val debugModule = LazyModule(new TLDebugModule())
|
||||
debugModule.node :=
|
||||
TLHintHandler()(
|
||||
TLBuffer()(
|
||||
@ -121,7 +121,7 @@ abstract class BaseCoreplexModule[+L <: BaseCoreplex, +B <: BaseCoreplexBundle](
|
||||
// and coherence manager(s) to the other side
|
||||
l1tol2net.io.clients_cached <> uncoreTileIOs.map(_.cached).flatten
|
||||
l1tol2net.io.clients_uncached <> uncoreTileIOs.map(_.uncached).flatten ++ io.slave
|
||||
l1tol2net.io.managers <> managerEndpoints.map(_.innerTL) :+ mmioManager.io.inner
|
||||
l1tol2net.io.managers <> managerEndpoints.map(_.innerTL) :+ mmioManager.io.inner // legacy goes here (not mmioManager)
|
||||
|
||||
val mem_ic = Module(new TileLinkMemoryInterconnect(nBanksPerMemChannel, c.nMemChannels)(outerMemParams))
|
||||
|
||||
|
@ -823,8 +823,8 @@ trait DebugModule extends Module with HasDebugModuleParameters with HasRegMap {
|
||||
*
|
||||
*/
|
||||
|
||||
class TLDebugModule(beatBytes: Int) (implicit p: Parameters)
|
||||
extends TLRegisterRouter(0x0, beatBytes=beatBytes)(
|
||||
class TLDebugModule(address: BigInt = 0)(implicit p: Parameters)
|
||||
extends TLRegisterRouter(address, beatBytes=p(rocket.XLen)/8)(
|
||||
new TLRegBundle(p, _ ) with DebugModuleBundle)(
|
||||
new TLRegModule(p, _, _) with DebugModule)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user