List of Messages |
TYPE StateType IS (st0, st1, st2); SIGNAL current_state: StateType; SIGNAL next_state: StateType; PROCESS(i, current_state) BEGIN current_state <= st2; CASE current_state is WHEN st2 => next_state <= StateType'PRED(st0); WHEN others => next_state <= st2; END CASE; END PROCESS;
ACTION: Make sure you do not try to access an enumeration literal that is positioned to the left of the first enumeration literal in an enumeration type.
Copyright© 2015 Altera Corporation. All rights reserved. ALTERA, ARRIA, CYCLONE, HARDCOPY, MAX, MEGACORE, NIOS, QUARTUS, STRATIX, and all other brands, unless noted otherwise, and/or trademarks of Altera Corporation in the U.S. and other countries.