isp: passthru based on edgesOut = edgesIn (#814)
This commit is contained in:
parent
1f18a37f01
commit
ad4b454b49
@ -42,7 +42,7 @@ class TLSplitter(policy: TLArbiter.Policy = TLArbiter.roundRobin)(implicit p: Pa
|
|||||||
def group[T](x: Seq[T]) =
|
def group[T](x: Seq[T]) =
|
||||||
if (x.isEmpty) Nil else x.grouped(node.edgesIn.size).toList.transpose
|
if (x.isEmpty) Nil else x.grouped(node.edgesIn.size).toList.transpose
|
||||||
|
|
||||||
if (node.edgesIn.size <= 1) {
|
if (node.edgesOut.size == node.edgesIn.size) {
|
||||||
io.out <> io.in
|
io.out <> io.in
|
||||||
} else ((node.edgesIn zip io.in) zip (group(node.edgesOut) zip group(io.out))) foreach {
|
} else ((node.edgesIn zip io.in) zip (group(node.edgesOut) zip group(io.out))) foreach {
|
||||||
case ((edgeIn, io_in), (edgesOut, io_out)) =>
|
case ((edgeIn, io_in), (edgesOut, io_out)) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user