Library Fairisle.Fairisle.SPECIF.ROUND_ROBIN.NextPort
Require Export PortsCompl.
Require Import Arith_Compl.
Set Implicit Arguments.
Unset Strict Implicit.
Section Successor_Modulo_NbPorts.
Variable i : nat. Let Inportno := T_Inportno i.
Let no : Inportno → nat := no_in (i:=i).
Notation C_Inp := (exist (fun n : nat ⇒ n < i)) (only parsing).
Returns the next successful input port according to the last successful one and according to the number of input ports
