Trying to integrate an UVM based verification collateral in a verilog based environment.
I have a env by name “local_env” and I create this “local_env” in a top level env’s build phase. (tb_env is the name for top level env).
This verification infrastructure is compile and elab clean.
The problem being faced is, I am unable to see build_phase method of local_env getting called at all!
I do see the print messages from build_phase of tb_env but not local_env.
Can someone help me understand what I might have missed here.
If “local_env” is extended from uvm_component (which uvm_env is), then its build_phase should be called at some point. Without seeing any code, it is difficult to guess why. The only thing I can offer is:
Put a print statement inside the constructor of local_env to make sure it is being constructed.
Double check that you spelled build_phase() correctly — there is no error message if you misspell it.