The next statement required to skip the execution of statements inside the loop.If
there is no condition, then the statement is executed. In the next statement if
label is not supported then the statement is applied to inner loop.
The syntax is :
next
[ label ] [ when condition ] ;
Example :
entity next_ex is port( COPY_ENABLE : in BIT_VECTOR (1 to 8); A : out BIT_VECTOR (1 to 8) ); end next_ex; architecture arch of next_ex is begin process (B, COPY_ENABLE) begin A <= 00000000; for I in 1 to 8 loop next when COPY_ENABLE(I) = 0; A (I) <= B(I); end loop; end process; end arch;