CountedQueueBankingTopology constructor
- required int capacity,
- required int laneCount,
- required int bankCount,
- MemoryBankingPolicy policy = MemoryBankingPolicy.interleaved,
Creates a counted-queue bank topology.
Implementation
CountedQueueBankingTopology({
required this.capacity,
required this.laneCount,
required this.bankCount,
this.policy = MemoryBankingPolicy.interleaved,
}) {
if (capacity < 1 || laneCount < 1) {
throw ArgumentError('Capacity and lane count must be positive.');
}
if (bankCount < 1 || bankCount > capacity) {
throw ArgumentError(
'Bank count must be positive and at most the queue capacity.');
}
}