Unary Logical Reduction Operators - 2022.1 English

Vivado Design Suite User Guide: Synthesis (UG901)

Document ID
UG901
Release Date
2022-06-06
Version
2022.1 English

In the previous version of VHDL, operators such as and, nand, or, took two different values and then returned a bit or boolean value. For VHDL-2008, unary support has been added for these operators. They return the logical function of the input. For example, the code:

out1 <= and("0101");

would AND the 4 bits together and return 0. The logical functions have unary support are: and, nand, or, nor, xor, and xnor.