List of Messages |
PACKAGE p1 IS TYPE color IS (red, green, blue); END p1; PACKAGE p2 IS TYPE color IS (black, white); END p2; USE work.p1.all; USE work.p2.all; ENTITY my_entity IS PORT ( i : IN color; o : OUT color; ); END my_entity; ARCHITECTURE a OF my_entity IS BEGIN o <= i; END a;
ACTION: Make sure the design clearly specifies the type of the object. For example, you can explicitly specify a type for an object using a qualified expression, or you can make sure an Entity Declaration or Architecture Body uses an unambiguous Type Declaration. For the previous example, you can change the color type to two separate types named color1 and color2.
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.