User guide
24-247
SystemVerilog Testbench Constructs
filename
Name of the file where the memory profiler dumps the report.
w | a+
w and a+ designate the mode in which the file is opened. Specify
w for writing and a+ for appending to an existing file.
UCLI Interface
Compile-time
The dynamic memory profiler is enabled only if you specify +dmprof
on the VCS compile-time command line:
vcs -ntb -sverilog +dmprof dut_filename.v testbench_filename.sv \
[-debug | -debug_all]
Note:
Use the -sverilog compile-time option when compiling
SystemVerilog code.
Runtime
At runtime, invoke $vcsmemprof() from the UCLI command line
prompt as follows:
simv -ucli //Invokes the ucli prompt
ucli>call {$vcsmemprof("memprof.txt", "w|a+")}
CLI Interface
Compile-time
The dynamic memory profiler is enabled only if you specify +dmprof
on the VCS compile-time command line: