Operator Overloading
How do you use Arithmetic & Boolean functions with other data types?
- Operator Overloading - defining Arithmetic & Boolean functions with other data types.
Operators are overloaded by defining a function whose name is the same as the operator itself.
- Because the operator and function name are the same, the function name must be enclosed within double quotes to distinguish it from the actual VHDL operator.
- The function is normally declared in a package so that it is globally visible for any design