validate method
Validates that this request describes a realizable raw interface.
Implementation
void validate() {
if (keyWidth < 1 ||
indexWidth < 1 ||
entryCount < 1 ||
updatePortCount < 0 ||
lookupPortCount < 1 ||
lookupLatency < 0 ||
indexedSideReadCount < 0 ||
updateLatency < 0) {
throw ArgumentError('Associative-memory widths, entry count, lookup '
'ports, and latencies must be valid.');
}
if ((BigInt.one << indexWidth) < BigInt.from(entryCount)) {
throw ArgumentError(
'Index width $indexWidth cannot represent $entryCount entries.');
}
}