User guide
21-108
OpenVera Native Testbench
Only Active Memory Reported
The memory profiler reports only memory actively held at the current
simulation time instant by the dynamic data types.
Consider the following OpenVera program:
task t1() {
integer arr1[*];
arr1 = new[500];
delay(5);
}
task t2() {
integer arr2[*];
arr2 = new[500];
delay(10);
}
program main {
fork
{
t1();
}
{
t2();
}
join all
}
In this program, if $vcsmemprof() is called between 0 and 4 ns, then
both arr1 and arr2 are active. If the call is made between 5 and
10 ns, then only arr2 is active and after 10 ns, neither is active.
VCS Dynamic Memory Profile Report
The profile report includes the following sections.
1. Top level view