Debug: make address configurable
This commit is contained in:
		| @@ -51,7 +51,7 @@ case class CoreplexConfig( | |||||||
| abstract class BaseCoreplex(c: CoreplexConfig)(implicit val p: Parameters) extends LazyModule with HasCoreplexParameters { | abstract class BaseCoreplex(c: CoreplexConfig)(implicit val p: Parameters) extends LazyModule with HasCoreplexParameters { | ||||||
|  |  | ||||||
|   val debugLegacy = LazyModule(new TLLegacy()(outerMMIOParams)) |   val debugLegacy = LazyModule(new TLLegacy()(outerMMIOParams)) | ||||||
|   val debugModule = LazyModule(new TLDebugModule(p(XLen)/8)) |   val debugModule = LazyModule(new TLDebugModule()) | ||||||
|   debugModule.node := |   debugModule.node := | ||||||
|   TLHintHandler()( |   TLHintHandler()( | ||||||
|     TLBuffer()( |     TLBuffer()( | ||||||
| @@ -121,7 +121,7 @@ abstract class BaseCoreplexModule[+L <: BaseCoreplex, +B <: BaseCoreplexBundle]( | |||||||
|     // and coherence manager(s) to the other side |     // and coherence manager(s) to the other side | ||||||
|     l1tol2net.io.clients_cached <> uncoreTileIOs.map(_.cached).flatten |     l1tol2net.io.clients_cached <> uncoreTileIOs.map(_.cached).flatten | ||||||
|     l1tol2net.io.clients_uncached <> uncoreTileIOs.map(_.uncached).flatten ++ io.slave |     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)) |     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) | class TLDebugModule(address: BigInt = 0)(implicit p: Parameters) | ||||||
|   extends TLRegisterRouter(0x0, beatBytes=beatBytes)( |   extends TLRegisterRouter(address, beatBytes=p(rocket.XLen)/8)( | ||||||
|   new TLRegBundle(p, _ )    with DebugModuleBundle)( |   new TLRegBundle(p, _ )    with DebugModuleBundle)( | ||||||
|   new TLRegModule(p, _, _)  with DebugModule) |   new TLRegModule(p, _, _)  with DebugModule) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user