User guide
21-107
OpenVera Native Testbench
CLI 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 CLI command line
prompt as follows. You can make the call to $vcsmemprof() at any
point during the simulation.
simv -s //Invokes the cli prompt
cli_0>$vcsmemprof("memprof.txt", "w|a+")
The memory profiler reports the memory consumed by all the active
instances of the different dynamic data types. As noted above, the
memory profiler report is dumped in the filename specified in the
$vcsmemprof() call.
Incremental Profiling
Each invocation of $vcsmemprof() appends the profiler data to the
user specified file. The time at which the call is made is also reported.
This enables you to narrow down the search for any memory issues.