How do you specify an infinite loop in Verilog?
How do you specify an infinite loop in Verilog?
- using the forever keyword
- with the endloop directive
- by declaring a loop variable
- using the while (1) construct
Correct answer
D. using the while (1) construct
Explanation
forever repeats without a stopping condition. while (1) is also infinite while its condition remains true, so the source answer is not unique.