rocketchip: pull rtcTick out of the coreplex
This commit is contained in:
		| @@ -122,9 +122,10 @@ trait CoreplexRISCVBundle { | ||||
|  | ||||
|   val mem = Vec(nMemChannels, new ClientUncachedTileLinkIO()(outerMemParams)) | ||||
|   val slave = Vec(nSlaves, new ClientUncachedTileLinkIO()(innerParams)).flip | ||||
|   val debug = new DebugBusIO().flip | ||||
|   val rtcTick = Bool(INPUT) | ||||
|   val resetVector = UInt(INPUT, p(XLen)) | ||||
|   val success = Bool(OUTPUT) // used for testing | ||||
|   val debug = new DebugBusIO().flip | ||||
| } | ||||
|  | ||||
| trait CoreplexRISCVModule { | ||||
| @@ -215,7 +216,7 @@ trait CoreplexRISCVModule { | ||||
|   } | ||||
|  | ||||
|   outer.debug.module.io.db <> io.debug | ||||
|   outer.clint.module.io.rtcTick := Counter(p(rocketchip.RTCPeriod)).inc() | ||||
|   outer.clint.module.io.rtcTick := io.rtcTick | ||||
|  | ||||
|   // Coreplex doesn't know when to stop running | ||||
|   io.success := Bool(false) | ||||
|   | ||||
| @@ -69,8 +69,10 @@ trait TopNetworkModule extends HasPeripheryParameters { | ||||
|   val coreplexMem  : Vec[ClientUncachedTileLinkIO] = Wire(outer.coreplex.module.io.mem) | ||||
|   val coreplexSlave: Vec[ClientUncachedTileLinkIO] = Wire(outer.coreplex.module.io.slave) | ||||
|   val coreplexDebug: DebugBusIO                    = Wire(outer.coreplex.module.io.debug) | ||||
|   val coreplexRtc  : Bool                          = Wire(outer.coreplex.module.io.rtcTick) | ||||
|  | ||||
|   io.success := outer.coreplex.module.io.success | ||||
|   coreplexRtc := Counter(p(rocketchip.RTCPeriod)).inc() | ||||
| } | ||||
|  | ||||
| /** Base Top with no Periphery */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user