What is the purpose of the “always_latch” block in Verilog?
What is the purpose of the “always_latch” block in Verilog?
- To define latch-based logic
- To implement a clock divider
- To specify a testbench
- To declare input/output ports of a module
Correct answer
A. To define latch-based logic
Explanation
always_latch is a SystemVerilog process for level-sensitive latch behavior; state is retained when the latch is not enabled.