What is the purpose of the “case” statement in Verilog?
What is the purpose of the “case” statement in Verilog?
- To create a conditionally executed block of code.
- To define a lookup table.
- To generate clock signals.
- To declare a new module.
Correct answer
B. To define a lookup table.
Explanation
case compares a value with alternatives and can implement a lookup or selection table.