tilelink2: add a TLBundle constructor
This commit is contained in:
parent
1cd85ff050
commit
34f65938b6
@ -214,3 +214,8 @@ class TLBundle(params: TLBundleParameters) extends TLBundleBase(params)
|
||||
val d = Decoupled(new TLBundleD(params)).flip
|
||||
val e = Decoupled(new TLBundleE(params))
|
||||
}
|
||||
|
||||
object TLBundle
|
||||
{
|
||||
def apply(params: TLBundleParameters) = new TLBundle(params)
|
||||
}
|
||||
|
@ -48,8 +48,8 @@ class TLBaseNode(
|
||||
lazy val edgesOut = clientPorts.map { n => new TLEdgeOut(clientParams.get, n.managerParams.get) }
|
||||
lazy val edgesIn = managerPorts.map { n => new TLEdgeIn (n.clientParams.get, managerParams.get) }
|
||||
|
||||
lazy val bundleOut = Vec(edgesOut.size, new TLBundle(edgesOut.map(_.bundle).reduce(_.union(_))))
|
||||
lazy val bundleIn = Vec(edgesIn .size, new TLBundle(edgesIn .map(_.bundle).reduce(_.union(_)))).flip
|
||||
lazy val bundleOut = Vec(edgesOut.size, TLBundle(edgesOut.map(_.bundle).reduce(_.union(_))))
|
||||
lazy val bundleIn = Vec(edgesIn .size, TLBundle(edgesIn .map(_.bundle).reduce(_.union(_)))).flip
|
||||
}
|
||||
|
||||
class TLClientNode(
|
||||
|
Loading…
Reference in New Issue
Block a user