FifoCoreFunctor<LogicType extends Logic> constructor
- required int depth,
- bool generateOccupancy = false,
- bool generateError = false,
- bool generateBypass = false,
- RegisterFileFunctor? storageImplementation,
- MemoryConfiguration? memoryConfiguration,
Creates a configured FIFO construction functor.
Implementation
FifoCoreFunctor({
required int depth,
this.generateOccupancy = false,
this.generateError = false,
bool generateBypass = false,
RegisterFileFunctor? storageImplementation,
MemoryConfiguration? memoryConfiguration,
}) : storageImplementation = resolveRegisterFileImplementation(
memoryConfiguration: memoryConfiguration,
implementation: storageImplementation),
capabilities = FifoCoreCapabilities(
depth: depth,
supportsEmptyBypass: generateBypass,
generatesOccupancy: generateOccupancy,
generatesError: generateError,
) {
if (depth < 1) {
throw ArgumentError.value(depth, 'depth', 'Must be at least one.');
}
}