ProducerDependencyEntry constructor

ProducerDependencyEntry({
  1. required int slotWidth,
  2. required int producerCount,
  3. String name = 'producer_dependency_entry',
})

Creates a dependency-row load payload.

Implementation

ProducerDependencyEntry({
  required this.slotWidth,
  required this.producerCount,
  String name = 'producer_dependency_entry',
}) : super([
        Logic(name: 'slot', width: slotWidth),
        Logic(name: 'dependencies', width: producerCount),
      ], name: name) {
  if (slotWidth < 1 || producerCount < 1) {
    throw ArgumentError('Slot width and producer count must be positive.');
  }
}