1
0

Fix Split for 0-width wires

This commit is contained in:
Andrew Waterman 2015-05-18 18:23:17 -07:00
parent d31b26c342
commit 254498042a

View File

@ -97,7 +97,7 @@ object Split
val w = x.getWidth
def decreasing(x: Seq[Int]): Boolean =
if (x.tail.isEmpty) true
else x.head > x.tail.head && decreasing(x.tail)
else x.head >= x.tail.head && decreasing(x.tail)
require(decreasing(w :: n.toList))
w
}