OutOfOrderMemoryTransportBoundary constructor

OutOfOrderMemoryTransportBoundary({
  1. required Logic currentEpoch,
  2. required ReadyValidInterface<OutOfOrderMemoryRefillResponse> refillInput,
  3. required ReadyValidInterface<OutOfOrderMemoryRefillResponse> currentRefillOutput,
  4. String name = 'ooo_memory_transport_boundary',
})

Creates a recovery-qualified refill transport boundary.

Implementation

OutOfOrderMemoryTransportBoundary({
  required Logic currentEpoch,
  required ReadyValidInterface<OutOfOrderMemoryRefillResponse> refillInput,
  required ReadyValidInterface<OutOfOrderMemoryRefillResponse>
      currentRefillOutput,
  super.name = 'ooo_memory_transport_boundary',
}) : super(
        definitionName:
            'OutOfOrderMemoryTransportBoundary_E${currentEpoch.width}',
      ) {
  final guard = OutOfOrderMemoryRecoveryEpochGuard(
    currentEpoch: currentEpoch,
    input: refillInput,
    output: currentRefillOutput,
    name: 'recovery_epoch_guard',
  );
  this.refillInput = refillInput;
  this.currentRefillOutput = currentRefillOutput;
  addOutput('staleRefill') <= guard.staleResponse;
}