IMPORTANT NOTICE: Please be advised that the Verification Academy Forums will be offline for scheduled maintenance on Sunday, March 23rd at 4:00 US/Pacific.
In reply to Martin John H. Borja:
$dumpvar has levels: This argument specifies the levels of hierarchy, consistent with the corresponding argument to the $dumpvars system task (see 1800-2012 section 21.7.1.2). If this argument is not specified, it defaults to 0 (i.e., the specified module and in all module instances below the specified module). Example:
$dumpvars (1, top); // Because the first argument is a 1,
// this invocation dumps all variables within the module top;
// it does not dump variables in any of the modules instantiated by module top.
Thanks to your reply.
I am also using the same verilog LRM.
The fix though to my problem is tool specific.
For Questa, there is a flag that must be set during compilation to acceess the sub modules and ports in the top design.
This is entirely different in other tools.