Skip to content

Commit

Permalink
Stage/Phase Rocket Chip Bump (#453)
Browse files Browse the repository at this point in the history
* Intermediate RC Bump

* Remove clock and reset from TracedInstruction

* Blanket DontCare coreMonitorBundle

* Remove unused diplomatic object model stuff

* Remove an unused comment

* Remove unused rocket params
  • Loading branch information
davidbiancolin committed Apr 18, 2020
1 parent 10eeee4 commit 90911dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 49 deletions.
35 changes: 1 addition & 34 deletions src/main/scala/common/tile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import freechips.rocketchip.config._
import freechips.rocketchip.subsystem._
import freechips.rocketchip.devices.tilelink._
import freechips.rocketchip.diplomacy._
import freechips.rocketchip.diplomaticobjectmodel.logicaltree.{LogicalModuleTree, LogicalTreeNode, RocketLogicalTreeNode, ICacheLogicalTreeNode}
import freechips.rocketchip.diplomaticobjectmodel.logicaltree.{LogicalTreeNode }
import freechips.rocketchip.rocket._
import freechips.rocketchip.subsystem.{RocketCrossingParams}
import freechips.rocketchip.tilelink._
Expand Down Expand Up @@ -145,36 +145,6 @@ class BoomTile(
else TLBuffer(BufferParams.flow, BufferParams.none, BufferParams.none, BufferParams.none, BufferParams.none)
}

val fakeRocketParams = RocketTileParams(
dcache = boomParams.dcache,
hartId = boomParams.hartId,
name = boomParams.name,
btb = boomParams.btb,
core = RocketCoreParams(
bootFreqHz = boomParams.core.bootFreqHz,
useVM = boomParams.core.useVM,
useUser = boomParams.core.useUser,
useDebug = boomParams.core.useDebug,
useAtomics = boomParams.core.useAtomics,
useAtomicsOnlyForIO = boomParams.core.useAtomicsOnlyForIO,
useCompressed = boomParams.core.useCompressed,
useSCIE = boomParams.core.useSCIE,
mulDiv = boomParams.core.mulDiv,
fpu = boomParams.core.fpu,
nLocalInterrupts = boomParams.core.nLocalInterrupts,
nPMPs = boomParams.core.nPMPs,
nBreakpoints = boomParams.core.nBreakpoints,
nPerfCounters = boomParams.core.nPerfCounters,
haveBasicCounters = boomParams.core.haveBasicCounters,
misaWritable = boomParams.core.misaWritable,
haveCFlush = boomParams.core.haveCFlush,
nL2TLBEntries = boomParams.core.nL2TLBEntries,
mtvecInit = boomParams.core.mtvecInit,
mtvecWritable = boomParams.core.mtvecWritable
)
)
val rocketLogicalTree: RocketLogicalTreeNode = new RocketLogicalTreeNode(cpuDevice, fakeRocketParams, dtim_adapter, p(XLen))

override lazy val module = new BoomTileModuleImp(this)

// DCache
Expand All @@ -187,9 +157,6 @@ class BoomTile(
val frontend = LazyModule(new BoomFrontend(tileParams.icache.get, hartId))
tlMasterXbar.node := frontend.masterNode

private val deviceOpt = None
val iCacheLogicalTreeNode = new BoomICacheLogicalTreeNode(frontend.icache, deviceOpt, tileParams.icache.get)

// ROCC
val roccs = p(BuildRoCC).map(_(p))
roccs.map(_.atlNode).foreach { atl => tlMasterXbar.node :=* atl }
Expand Down
16 changes: 1 addition & 15 deletions src/main/scala/exu/core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1344,20 +1344,9 @@ class BoomCore(implicit p: Parameters) extends BoomModule

// TODO: Does anyone want this debugging functionality?
val coreMonitorBundle = Wire(new CoreMonitorBundle(xLen))
coreMonitorBundle := DontCare
coreMonitorBundle.clock := clock
coreMonitorBundle.reset := reset
coreMonitorBundle.hartid := DontCare
coreMonitorBundle.timer := DontCare
coreMonitorBundle.valid := DontCare
coreMonitorBundle.pc := DontCare
coreMonitorBundle.wrdst := DontCare
coreMonitorBundle.wrdata := DontCare
coreMonitorBundle.wren := DontCare
coreMonitorBundle.rd0src := DontCare
coreMonitorBundle.rd0val := DontCare
coreMonitorBundle.rd1src := DontCare
coreMonitorBundle.rd1val := DontCare
coreMonitorBundle.inst := DontCare

//-------------------------------------------------------------
//-------------------------------------------------------------
Expand Down Expand Up @@ -1430,9 +1419,6 @@ class BoomCore(implicit p: Parameters) extends BoomModule

if (p(BoomTilesKey)(0).trace) {
for (w <- 0 until coreWidth) {
io.trace(w).clock := clock
io.trace(w).reset := reset

// Delay the trace so we have a cycle to pull PCs out of the FTQ
io.trace(w).valid := RegNext(rob.io.commit.valids(w))

Expand Down

0 comments on commit 90911dd

Please sign in to comment.