Forum Discussion
Altera_Forum
Honored Contributor
16 years agothe 'high attribute returns either the highest value of a type, or the highest index in an array type:
signal slv0 : std_logic_vector(10 downto 0); signal slv1 : std_logic_vector(3 to 99); subtype myint0 is integer range -10 to 17; subtype myint1 is natural range 18 to 66; type sometype is (A, B, C, D, E); slv0'high = 10 slv1'high = 99 myint0'high = 17 myint1'high = 66 sometype'high = E