1
0

tilelink: we can have helper objects for terminal nodes now too!

The new rule is you should have an object.apply method if you only have a
single .node.
This commit is contained in:
Wesley W. Terpstra
2017-11-30 11:51:19 -08:00
parent 2092cb4ec8
commit 6a25a3b7ac
6 changed files with 43 additions and 1 deletions

View File

@ -206,6 +206,9 @@ class TLXbar(policy: TLArbiter.Policy = TLArbiter.roundRobin)(implicit p: Parame
object TLXbar
{
def apply(policy: TLArbiter.Policy = TLArbiter.roundRobin)(implicit p: Parameters): TLNode =
LazyModule(new TLXbar(policy)).node
def mapInputIds (ports: Seq[TLClientPortParameters ]) = assignRanges(ports.map(_.endSourceId)).map(_.get)
def mapOutputIds(ports: Seq[TLManagerPortParameters]) = assignRanges(ports.map(_.endSinkId))