1
0

tilelink: bus wrapper scopes called 'couplers'

This commit is contained in:
Henry Cook 2018-02-16 18:03:40 -08:00
parent 57edd7facf
commit a6d3965491

View File

@ -40,17 +40,16 @@ abstract class TLBusWrapper(params: HasTLBusParams, val busName: String)(implici
} }
protected def to[T](name: String)(body: => T): T = { protected def to[T](name: String)(body: => T): T = {
this { LazyScope(s"${busName}To${name}") { body } } this { LazyScope(s"coupler_to_${name}") { body } }
} }
protected def from[T](name: String)(body: => T): T = { protected def from[T](name: String)(body: => T): T = {
this { LazyScope(s"${busName}From${name}") { body } } this { LazyScope(s"coupler_from_${name}") { body } }
} }
} }
trait HasTLXbarPhy { this: TLBusWrapper => trait HasTLXbarPhy { this: TLBusWrapper =>
private val xbar = LazyModule(new TLXbar) private val xbar = LazyModule(new TLXbar).suggestName(busName + "_xbar")
xbar.suggestName(busName)
protected def inwardNode: TLInwardNode = xbar.node protected def inwardNode: TLInwardNode = xbar.node
protected def outwardNode: TLOutwardNode = xbar.node protected def outwardNode: TLOutwardNode = xbar.node