When we run a testcase either through command line or through the run_test() method we always get the hierarchy starting with ovm_test_top.env.agent…
From where and how we are getting ovm_test_top? i am expecting “mytest” to be there…
Can anyone please explain?
The name ‘ovm_test_top’ is used for continuity to ensure that the OVM hierarchy is constant from test to test. This ensures that the set_config targets for the virtual interface wrappers won’t have to account for different test names.
Refer to ovm_root.svh to see how it is created.