top of page
14.5. Introduction to Multiway Branching
​
Multiway branching allows HDL code to make decisions and execute different code paths based on conditions. It is fundamental for implementing control logic, state machines, decoders, multiplexers, and complex decision-making circuits.
​
What is Multiway Branching?
​
Multiway branching provides mechanisms to choose between multiple execution paths based on conditional expressions. Verilog offers two primary constructs:
​
-
if/else Statements - Priority-based conditional execution
​
-
case Statements - Parallel multi-way selection
​
Where Are They Used?
.png)
Synthesizability
​
IMPORTANT: Both if/else and case statements are SYNTHESIZABLE when used correctly in always blocks. They generate combinational or sequential logic depending on context.
​
14.5.1 If/Else Statements
​
14.5.2. Case Statements
bottom of page
