Day 59
Day 59
Procedural Statements: initial, always, final, while, do-while, break-continue, fork-join, tasks,functions,
forever loop
9. What is the main limitation of fork-join in Verilog, and how is this overcome in System Verilog?
The main limitation of fork-join construct in Verilog is that it is static, that is, the execution of the code
beyond the join is suspended until all the processes within the fork-join are completed.
12. What are the features added in System Verilog for function and task?
Task can contain a declaration of parameters, input arguments, output arguments, in-out arguments,
registers, events, and zero or more behavioral statements. SystemVerilog task can be, static.
A Function can contain declarations of range, returned type, parameters, input arguments, registers,
and events. SystemVerilog function can be, static. automatic.
17. What is the difference between "forever" loop & "for" loop in System Verilog?
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.