Using if-else Statements - 2023.1 English - UG901

Vivado Design Suite User Guide: Synthesis (UG901)

Document ID
UG901
Release Date
2023-06-09
Version
2023.1 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.