Skip to content

Commit

Permalink
Revert "Do not connect the PTW if not usingPTW"
Browse files Browse the repository at this point in the history
This reverts commit e9c3375.
  • Loading branch information
abejgonzalez authored and jerryz123 committed Mar 15, 2019
1 parent cf29dcf commit 9e5a665
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
13 changes: 3 additions & 10 deletions src/main/scala/common/tile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,7 @@ class BoomTileModuleImp(outer: BoomTile) extends BaseTileModuleImp(outer)
outer.dcache.module.io.hartid := constants.hartid
dcachePorts += core.io.dmem // TODO outer.dcachePorts += () => module.core.io.dmem ??
//fpuOpt foreach { fpu => core.io.fpu <> fpu.io } RocketFpu - not needed in boom
core.io.ptw := DontCare
if (usingPTW)
{
core.io.ptw <> ptw.io.dpath
}
core.io.ptw <> ptw.io.dpath
core.io.rocc := DontCare
core.io.fpu := DontCare
core.io.reset_vector := DontCare
Expand Down Expand Up @@ -223,11 +219,8 @@ class BoomTileModuleImp(outer: BoomTile) extends BaseTileModuleImp(outer)
// TODO figure out how to move the below into their respective mix-ins
dcacheArb.io.requestor <> dcachePorts
ptwPorts += core.io.ptw_tlb
core.io.ptw_tlb := DontCare
if (usingPTW)
{
ptw.io.requestor <> ptwPorts
}
ptw.io.requestor <> ptwPorts

val frontendStr = outer.frontend.module.toString
ElaborationArtefacts.add(
"""core.config""",
Expand Down
3 changes: 2 additions & 1 deletion src/main/scala/lsu/types.scala
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ trait CanHaveBoomPTWModule extends HasBoomHellaCacheModule
{
val outer: CanHaveBoomPTW
val ptwPorts = ListBuffer(outer.dcache.module.io.ptw)
val ptw = if (outer.usingPTW) Module(new PTW(outer.nPTWPorts)(outer.dcache.node.edges.out(0), outer.p)) else null
val ptw = Module(new PTW(outer.nPTWPorts)(outer.dcache.node.edges.out(0), outer.p))
ptw.io <> DontCare // Is overridden below if PTW is connected
if (outer.usingPTW)
{
dcachePorts += ptw.io.mem
Expand Down

0 comments on commit 9e5a665

Please sign in to comment.