Friday, October 8, 2010

where are these methods defined in OVM?

In my OVM tests I see functions/tasks called without handle ..where are they defined

let us consider, for example, global_stop_request
this is defined in ovm_global.svh and is a global function/method.
it is a convenience function as it allows us to call ovm_top.stop_request() from anywhere.
 

enabling/disabling topology printing in OVM

ovm_root can print topology after elaboration phase.
ovm_root also has a variable to control this feature, enable_print_topology
when set ovm_root prints topology after elaboration phase, to disable printing set the variable to zero.


ovm_top.print_topology();
does the printing, an optional printer can be used as an argument to the print topology.