Skip to content

Commit

Permalink
Fix global NoC
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Oct 20, 2023
1 parent 6e47fee commit 130bba7
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/main/scala/soc/Buses.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class ConstellationSystemBus(
addressPrefixNexusNode
}

private val system_bus_noc = LazyModule(noc_params match {
private val system_bus_noc = noc_params match {
case params: GlobalTLNoCParams => context.asInstanceOf[CanHaveGlobalNoC].globalNoCDomain {
new TLGlobalNoC(params, name)
LazyModule(new TLGlobalNoC(params, name))
}
case params: SimpleTLNoCParams => new TLNoC(params, name)
case params: SplitACDxBETLNoCParams => new TLSplitACDxBENoC(params, name)
})
case params: SimpleTLNoCParams => LazyModule(new TLNoC(params, name))
case params: SplitACDxBETLNoCParams => LazyModule(new TLSplitACDxBENoC(params, name))
}

val inwardNode: TLInwardNode = (system_bus_noc.node :=* TLFIFOFixer(TLFIFOFixer.allVolatile)
:=* replicator.map(_.node).getOrElse(TLTempNode()))
Expand Down Expand Up @@ -78,13 +78,13 @@ class ConstellationMemoryBus(mbus_params: MemoryBusParams, noc_params: TLNoCPara
addressPrefixNexusNode
}

private val memory_bus_noc = LazyModule(noc_params match {
private val memory_bus_noc = noc_params match {
case params: GlobalTLNoCParams => context.asInstanceOf[CanHaveGlobalNoC].globalNoCDomain {
new TLGlobalNoC(params, name)
LazyModule(new TLGlobalNoC(params, name))
}
case params: SimpleTLNoCParams => new TLNoC(params, name)
case params: SplitACDxBETLNoCParams => new TLSplitACDxBENoC(params, name)
})
case params: SimpleTLNoCParams => LazyModule(new TLNoC(params, name))
case params: SplitACDxBETLNoCParams => LazyModule(new TLSplitACDxBENoC(params, name))
}

val inwardNode: TLInwardNode =
replicator.map(memory_bus_noc.node :*=* TLFIFOFixer(TLFIFOFixer.all) :*=* _.node)
Expand Down Expand Up @@ -119,13 +119,13 @@ class ConstellationPeripheryBus(pbus_params: PeripheryBusParams, noc_params: TLN
addressPrefixNexusNode
}

def genNoC()(implicit valName: ValName): TLNoCLike = LazyModule(noc_params match {
def genNoC()(implicit valName: ValName): TLNoCLike = noc_params match {
case params: GlobalTLNoCParams => context.asInstanceOf[CanHaveGlobalNoC].globalNoCDomain {
new TLGlobalNoC(params, name)
LazyModule(new TLGlobalNoC(params, name))
}
case params: SimpleTLNoCParams => new TLNoC(params, name)
case params: SplitACDxBETLNoCParams => new TLSplitACDxBENoC(params, name)
})
case params: SimpleTLNoCParams => LazyModule(new TLNoC(params, name))
case params: SplitACDxBETLNoCParams => LazyModule(new TLSplitACDxBENoC(params, name))
}

private val fixer = LazyModule(new TLFIFOFixer(TLFIFOFixer.all))
private val node: TLNode = pbus_params.atomics.map { pa =>
Expand Down

0 comments on commit 130bba7

Please sign in to comment.