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