vhdl_reference_93:miscellaneous_operators

Miscellaneous operators

The unary operator ABS is predefined for any numerical type.

The exponentiation operator ** is predefined for any integer-and floating-point type. The right operand (= exponent) is always of the predefined type integer .

Operator Operation Operand type Result type
ABS absolute value any numerical type same type
Operator Operation Operand type (left) Operand type (right) Result type
** exponentiation any integer type integer same type as left operand
any floating-point type integer same type as left operand

Exponentiation with negative exponents is only possible if the left operand is a floating-point type.