oldestWrappingAgeIssueSelection function

Logic oldestWrappingAgeIssueSelection({
  1. required Logic eligible,
  2. required Logic olderThan,
  3. required List<Logic> ages,
  4. required String name,
})

Selects the oldest eligible entry using caller-supplied wrapping ages.

Queue capacity is the maximum live-age bound and must fit in less than half the encoded age space.

Implementation

Logic oldestWrappingAgeIssueSelection(
        {required Logic eligible,
        required Logic olderThan,
        required List<Logic> ages,
        required String name}) =>
    WrappingAgeSelector(
            eligible: eligible,
            ages: ages,
            maximumLiveEntries: eligible.width,
            name: '${name}_oldest_wrapping')
        .selectedOneHot;