FifoCoreFunctor<LogicType extends Logic> constructor

FifoCoreFunctor<LogicType extends Logic>({
  1. required int depth,
  2. bool generateOccupancy = false,
  3. bool generateError = false,
  4. bool generateBypass = false,
  5. RegisterFileFunctor? storageImplementation,
  6. 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.');
  }
}