StoreSetAssignment constructor

StoreSetAssignment({
  1. required int instructionWidth,
  2. required int setIdWidth,
  3. String? name,
})

Creates a Store Set assignment.

Implementation

StoreSetAssignment({
  required this.instructionWidth,
  required this.setIdWidth,
  String? name,
}) : super([
        Logic(name: 'instruction', width: instructionWidth),
        Logic(name: 'setId', width: setIdWidth),
        Logic(name: 'invalidate'),
      ], name: name ?? 'store_set_assignment') {
  if (instructionWidth < 1 || setIdWidth < 1) {
    throw ArgumentError('Store Set identifier widths must be positive.');
  }
}