What are system tasks?
What are system tasks?
Model answer
**System tasks** are pre-defined (built-in) tasks and functions of the language that carry out operations related to the **simulation and verification** of a design. Their names start with $ . Some common system tasks: - $display : displays formatted output to the console or a log file (and starts a new line). - $time : returns the **current simulation time**. - $finish : ends the simulation, after a specific amount of time or when a specific condition is met. - $random : generates random values for variables or signals. Other frequently used ones: $monitor (prints whenever a listed signal changes), $stop (pauses the simulation), $urandom / $urandom_range (SystemVerilog random numbers), $cast , $countones , $readmemh (load a memory from a file).