1
0
Fork 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
1 changed files with 3 additions and 4 deletions

View File

@ -40,17 +40,16 @@ abstract class TLBusWrapper(params: HasTLBusParams, val busName: String)(implici
}
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 = {
this { LazyScope(s"${busName}From${name}") { body } }
this { LazyScope(s"coupler_from_${name}") { body } }
}
}
trait HasTLXbarPhy { this: TLBusWrapper =>
private val xbar = LazyModule(new TLXbar)
xbar.suggestName(busName)
private val xbar = LazyModule(new TLXbar).suggestName(busName + "_xbar")
protected def inwardNode: TLInwardNode = xbar.node
protected def outwardNode: TLOutwardNode = xbar.node