User guide

D-32
Compiler Directives and System Tasks
$writememb
Writes binary data in a memory to a file. Syntax:
$writememb ("filename",memory [,start_address]
[,end_address]);
Code example:
$writememb ("testfile.txt",mem,0,255);
$writememh
Writes hexadecimal data in a memory to a file. Syntax:
$writememh ("filename",memory [,start_address]
[,end_address]);
System Tasks for Time Scale
$printtimescale
Displays the time unit and time precision from the last
‘timescale compiler directive that VCS has read before it reads
the module definition containing this system task.
See IEEE std 1364-2001 pages 297-298.
$timeformat
Specifies how the %t format specification reports time
information. See IEEE std 1364-2001 pages 298-301.
System Tasks for Simulation Control
$stop
Halts simulation.
See IEEE std 1364-2001 pages 301-302.