Using if-else Statements - 2022.1 English

Vivado Design Suite User Guide: Synthesis (UG901)

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

Vivado synthesis supports if-else statements.

The if-else statements use true and false conditions to execute statements.

°If the expression evaluates to true, the first statement is executed.

°If the expression evaluates to false, x, or z, the else statement is executed.

A block of multiple statements is executed using begin and end keywords.

if-else statements can be nested.