Using if-else Statements - Using if-else Statements - 2024.2 English - UG901

Vivado Design Suite User Guide: Synthesis (UG901)

Document_ID
UG901
Release_Date
2024-12-11
Version
2024.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.