Using if-else Statements - Using if-else Statements - 2022.2 English - UG901

Vivado Design Suite User Guide: Synthesis (UG901)

Document_ID
UG901
Release_Date
2022-11-16
Version
2022.2 English

The if-else and if-elsif-else statements use TRUE and FALSE conditions to execute statements.

• If the expression evaluates to TRUE , the if branch is executed.

• If the expression evaluates to FALSE , x , or z , the else branch is executed.

° A block of multiple statements is executed in an if or else branch.

° begin and end keywords are required.

° if-else statements can be nested.