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:
@ -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))
|
||||
|
||||
|
Reference in New Issue
Block a user