Skip to content

Commit

Permalink
add slave node to rocc
Browse files Browse the repository at this point in the history
  • Loading branch information
richardyrh committed Feb 1, 2024
1 parent baa9f45 commit 9b0416e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/tile/LazyRoCC.scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ abstract class LazyRoCC(
require(roccCSRs.map(_.id).toSet.size == roccCSRs.size)
val atlNode: TLNode = TLIdentityNode()
val tlNode: TLNode = TLIdentityNode()
val stlNode: TLNode = TLIdentityNode()
}

class LazyRoCCModuleImp(outer: LazyRoCC) extends LazyModuleImp(outer) {
Expand All @@ -81,6 +82,7 @@ trait HasLazyRoCC extends CanHavePTW { this: BaseTile =>
"LazyRoCC instantiations require overlapping CSRs")
roccs.map(_.atlNode).foreach { atl => tlMasterXbar.node :=* atl }
roccs.map(_.tlNode).foreach { tl => tlOtherMastersNode :=* tl }
roccs.map(_.stlNode).foreach { stl => stl :*= tlSlaveXbar.node }

nPTWPorts += roccs.map(_.nPTWPorts).sum
nDCachePorts += roccs.size
Expand Down

0 comments on commit 9b0416e

Please sign in to comment.