List of Messages |
ENTITY example IS PORT ( i : IN std_logic_vector (0 to 3); o : OUT std_logic_vector (0 to 3) ); END example; ARCHITECTURE ex1 OF example IS signal my_sig : bit; BEGIN my_sig <= i(0); END ex1;
ACTION: Change the type of either the indexed array object or the target expression so that, when indexed, the array object returns a value that matches the type of the target expression. In the previous example, you could declare my_sig with type std_logic or signal i with type bit_vector.
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.