1
0

tilelink2: add a TLBundle constructor

This commit is contained in:
Wesley W. Terpstra 2016-08-24 13:50:11 -07:00
parent 1cd85ff050
commit 34f65938b6
2 changed files with 7 additions and 2 deletions

View File

@ -214,3 +214,8 @@ class TLBundle(params: TLBundleParameters) extends TLBundleBase(params)
val d = Decoupled(new TLBundleD(params)).flip val d = Decoupled(new TLBundleD(params)).flip
val e = Decoupled(new TLBundleE(params)) val e = Decoupled(new TLBundleE(params))
} }
object TLBundle
{
def apply(params: TLBundleParameters) = new TLBundle(params)
}

View File

@ -48,8 +48,8 @@ class TLBaseNode(
lazy val edgesOut = clientPorts.map { n => new TLEdgeOut(clientParams.get, n.managerParams.get) } 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 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 bundleOut = Vec(edgesOut.size, TLBundle(edgesOut.map(_.bundle).reduce(_.union(_))))
lazy val bundleIn = Vec(edgesIn .size, new TLBundle(edgesIn .map(_.bundle).reduce(_.union(_)))).flip lazy val bundleIn = Vec(edgesIn .size, TLBundle(edgesIn .map(_.bundle).reduce(_.union(_)))).flip
} }
class TLClientNode( class TLClientNode(