Using if-else Statements - 2023.2 English

Vivado Design Suite User Guide: Synthesis (UG901)

Document ID
UG901
Release Date
2023-11-01
Version
2023.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.