Arbiters.IndexPriority is specified as either a offset to start searching from, or as a special mask.
The mask has the form:
0 11..11111 11..11102 11..11003 11..1000num_sources-1 10..0000val next_mask : Hardcaml.Signal.t -> Hardcaml.Signal.tCompute the next value of a priority mask register. The initial (reset) value should be all ones, though it probably doesn't matter too much if it comes up all zeros as it will correctly set itself in the next cycle.