Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Verilog
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==System tasks== System tasks are available to handle simple I/O and various design measurement functions during simulation. All system tasks are prefixed with '''$''' to distinguish them from user tasks and functions. This section presents a short list of the most frequently used tasks. It is by no means a comprehensive list. * $display β Print to screen a line followed by an automatic newline. * $write β Print to screen a line without the newline. * $swrite β Print to variable a line without the newline. * $sscanf β Read from variable a format-specified string. (*Verilog-2001) * $fopen β Open a handle to a file (read or write) * $fdisplay β Print a line from a file followed by an automatic newline. * $fwrite β Print to file a line without the newline. * $fscanf β Read from file a format-specified string. (*Verilog-2001) * $fclose β Close and release an open file handle. * $readmemh β Read hex file content into a memory array. * $readmemb β Read binary file content into a memory array. * $monitor β Print out all the listed variables when any change value. * $time β Value of current simulation time. * $dumpfile β Declare the VCD ([[Value change dump|Value Change Dump]]) format output file name. * $dumpvars β Turn on and dump the variables. * $dumpports β Turn on and dump the variables in Extended-VCD format. * $random β Return a random value.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)