tilelink2: detect 1-bit overflow in register definitions
This commit is contained in:
parent
a1fc01fd6d
commit
8343070639
@ -85,7 +85,7 @@ object RegMapper
|
|||||||
val (reg, low, field) = flat(i)
|
val (reg, low, field) = flat(i)
|
||||||
val high = low + field.width - 1
|
val high = low + field.width - 1
|
||||||
// Confirm that no register is too big
|
// Confirm that no register is too big
|
||||||
require (high <= 8*bytes)
|
require (high < 8*bytes)
|
||||||
val rimask = frontMask(high, low).orR()
|
val rimask = frontMask(high, low).orR()
|
||||||
val wimask = frontMask(high, low).andR()
|
val wimask = frontMask(high, low).andR()
|
||||||
val romask = backMask(high, low).orR()
|
val romask = backMask(high, low).orR()
|
||||||
|
Loading…
Reference in New Issue
Block a user