UVM_INFO

virtual task run_phase(uvm_phase phase);
`uvm_info(get_type_name(), “Run Phase Called”, UVM_LOW)
endtask : run_phase

With above line of code, I am unable to get the print message, Is UVM_INFO not works for virtual tasks?

In reply to Neeraj Dahiy:

virtual task run_phase(uvm_phase phase);
`uvm_info(get_type_name(), “Run Phase Called”, UVM_LOW)
endtask : run_phase
With above line of code, I am unable to get the print message, Is UVM_INFO not works for virtual tasks?

Can you please give brief snippet of your code

In reply to Neeraj Dahiy:

virtual task run_phase(uvm_phase phase);
`uvm_info(get_type_name(), “Run Phase Called”, UVM_LOW)
endtask : run_phase
With above line of code, I am unable to get the print message, Is UVM_INFO not works for virtual tasks?

Your code looks perfect. There is no limitation with respect to the usage of this macro in a virtual task. And because you are using UVM_LOW it should be printed. There might be some other thing behind. Dou you see `uvm_info macros output from other parts of your code?

In reply to Neeraj Dahiy:

I do not know your code, but there could be a re-direction of messages in your environment or messagea with a certain ID will be suppressed.

In which component is the run_phase task?

In reply to Neeraj Dahiy:

Are you sure the line of code is being executed? Can you set a breakpoint? Or put $stop immediately after the `uvm_info.