1
0

isp: passthru based on edgesOut = edgesIn (#814)

This commit is contained in:
Henry Cook 2017-06-22 21:23:49 -07:00 committed by Wesley W. Terpstra
parent 1f18a37f01
commit ad4b454b49

View File

@ -42,7 +42,7 @@ class TLSplitter(policy: TLArbiter.Policy = TLArbiter.roundRobin)(implicit p: Pa
def group[T](x: Seq[T]) =
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
} else ((node.edgesIn zip io.in) zip (group(node.edgesOut) zip group(io.out))) foreach {
case ((edgeIn, io_in), (edgesOut, io_out)) =>