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

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.