Physics, asked by vectors9568, 1 year ago

What is meaning of ‘forever’ loop used in verilog?

Answers

Answered by ankita9434
0
The keyword forever in Verilog creates a block of code that will run continuously. It is similar to other loops in Verilog such as for loops and while loops. The main difference between these and the forever loop is that the forever loop will never stop running, whereas for and while have a limit.

Forever Loops should not be used in synthesizable code. They are intended for use in simulation testbenches only. Forever loops are most useful within tasks. This allows a task to perform some functionality until the simulation is quit. Note that the Jump Statements return and break can be used to exit your loop prematurely, but these are only supported in SystemVerilog.

rahulgrover033: hlo Ankita
ankita9434: hello
rahulgrover033: how are you
Similar questions