User guide

24-249
SystemVerilog Testbench Constructs
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 NTB (SV) Dynamic Memory Profile Report
The profile report includes the following sections.
1. Top level view
Reports the total dynamic memory consumed in all the SV
programs and that consumed in all the SV modules in the
system.
2. Module View
Reports the dynamic memory consumed in each SV module in
the system.