IndexAllocationGenerator typedef

IndexAllocationGenerator = List<Logic> Function({required Logic accepted, required List<Logic> available, required Logic clk, required String name, required Logic reset})

Elaborates a one-hot free-index allocation grant.

available has one bit per managed index. Stateful policies must advance only when accepted is high, preserving their choice while an allocation offer stalls.

Implementation

typedef IndexAllocationGenerator = List<Logic> Function(
    {required List<Logic> available,
    required Logic accepted,
    required Logic clk,
    required Logic reset,
    required String name});