ReadyValidStorageStatusChecker constructor

ReadyValidStorageStatusChecker(
  1. String name,
  2. Component? parent, {
  3. required Logic clk,
  4. required Logic reset,
  5. required int capacity,
  6. required Logic occupancy,
  7. required Logic empty,
  8. required Logic full,
  9. String endpoint = 'readyValidStorage',
  10. bool reportViolations = true,
})

Creates a retained-storage status checker.

Implementation

ReadyValidStorageStatusChecker(super.name, super.parent,
    {required this.clk,
    required this.reset,
    required this.capacity,
    required this.occupancy,
    required this.empty,
    required this.full,
    this.endpoint = 'readyValidStorage',
    this.reportViolations = true}) {
  if (capacity < 1) {
    throw ArgumentError.value(capacity, 'capacity', 'Must be at least one.');
  }
  if (reset.width != 1 || empty.width != 1 || full.width != 1) {
    throw ArgumentError('Reset, empty, and full signals must be one bit.');
  }
}