1
0

tilelink2: shave off a few more firrtl monitor lines

This commit is contained in:
Wesley W. Terpstra 2016-08-22 16:43:00 -07:00
parent af29595979
commit 9c62f5d9c1

View File

@ -315,9 +315,11 @@ case class TLEdgeParameters(
} else { } else {
val sub = helper(i-1) val sub = helper(i-1)
val size = lgSize === UInt(lgBytes - i) val size = lgSize === UInt(lgBytes - i)
val bit = address(lgBytes - i)
val nbit = !bit
Seq.tabulate (1 << i) { j => Seq.tabulate (1 << i) { j =>
val (sub_acc, sub_eq) = sub(j/2) val (sub_acc, sub_eq) = sub(j/2)
val eq = sub_eq && address(lgBytes - i) === Bool(j % 2 == 1) val eq = sub_eq && (if (j % 2 == 1) bit else nbit)
val acc = sub_acc || (size && eq) val acc = sub_acc || (size && eq)
(acc, eq) (acc, eq)
} }