User guide

21-106
OpenVera Native Testbench
Use Model
The $vcsmemprof() task can be called from the CLI or the UCLI
interface. The syntax for $vcsmemprof() is as follows:
$vcsmemprof("filename", "w|a+");
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.vr \[-debug | -debug_all]
Note:
Use the -sverilog compile-time option when compiling
SystemVerilog code. OpenVera code does not require this
option.
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+")}