Switch static assert to require

This commit is contained in:
Jerry Zhao
2024-01-16 10:15:53 -08:00
committed by GitHub
parent 47322af3c0
commit 565c187549

View File

@@ -254,7 +254,7 @@ class WithSimTSIOverSerialTL extends HarnessBinder({
class WithDriveChipIdPin extends HarnessBinder({
case (th: HasHarnessInstantiators, port: ChipIdPort, chipId: Int) => {
assert(chipId < math.pow(2, port.io.getWidth), "ID Pin is not wide enough")
require(chipId < math.pow(2, port.io.getWidth), "ID Pin is not wide enough")
port.io := chipId.U
}
})