Download Mentor Graphics VHDL Reference Manual

Transcript
Attributes
________________________________________________________________________________________________________________________
’high
Kind
Value
Prefix
Any scalar type or subtype.
Result Type
The same type as the prefix type.
Evaluation Result
The result is the upper bound of the specified prefix type.
Example
The following code defines address_range:
TYPE address_range IS RANGE 0 TO 16;
The following code returns the value "16", which is the upper bound of
address_range:
address_range’high
The following code defines down_address_range:
TYPE down_address_range IS RANGE 10 DOWNTO 1;
The following code returns the value "10", which is the upper bound of
down_address_rang:.
down_address_range’high
Mentor Graphics VHDL Reference Manual, July 1994
10-43