ReadyValidChannelSink constructor

ReadyValidChannelSink(
  1. String name,
  2. Component? parent, {
  3. required Logic clk,
  4. required Logic reset,
  5. required Logic ready,
  6. double blockRate = 0,
  7. ReadyValidChannelActivity? activity,
})

Creates a ready/valid receiver.

Implementation

ReadyValidChannelSink(super.name, super.parent,
    {required this.clk,
    required this.reset,
    required this.ready,
    this.blockRate = 0,
    this.activity}) {
  if (blockRate < 0 || blockRate > 1) {
    throw ArgumentError.value(
        blockRate, 'blockRate', 'Must be between zero and one.');
  }
}