Create command for monitor in agent:
my_mon = my_monitor::type_id::create(“my_mon”, this);
Log file with one create command for the monitor:
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1124) @ 0: reporter [PH/TRC/STRT] Phase ‘common’ (id=27) Starting phase
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1381) @ 0: reporter [PH/TRC/DONE] Phase ‘common’ (id=27) Completed phase
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1403) @ 0: reporter [PH/TRC/SCHEDULED] Phase ‘common.build’ (id=45) Scheduled from phase common
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1124) @ 0: reporter [PH/TRC/STRT] Phase ‘common.build’ (id=45) Starting phase
UVM_INFO /home/agent/my_agent.sv(47) @ 0: uvm_test_top.my_env_i.my_agent_i [DEBUG] MY AGENT Starting my_agent build_phase
UVM_INFO /home/agent/my_agent.sv(71) @ 0: uvm_test_top.my_env_i.my_agent_i [DEBUG] MY AGENT Starting my_agent build_phase complete
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1499) @ 0: reporter [PH/TRC/WAIT_PRED_OF_SUCC] Phase ‘common.build’ (id=45) *** No pred to succ other than myself, so ending phase***
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1356) @ 0: reporter [PH_END] Phase ‘common.build’ (id=45) ENDING PHASE
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1381) @ 0: reporter [PH/TRC/DONE] Phase ‘common.build’ (id=45) Completed phase
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1403) @ 0: reporter [PH/TRC/SCHEDULED] Phase ‘common.connect’ (id=57) Scheduled from phase common.build
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1124) @ 0: reporter [PH/TRC/STRT] Phase ‘common.connect’ (id=57) Starting phase
Log file with two create commands for the monitor:
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1124) @ 0: reporter [PH/TRC/STRT] Phase ‘common’ (id=27) Starting phase
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1381) @ 0: reporter [PH/TRC/DONE] Phase ‘common’ (id=27) Completed phase
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1403) @ 0: reporter [PH/TRC/SCHEDULED] Phase ‘common.build’ (id=45) Scheduled from phase common
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1124) @ 0: reporter [PH/TRC/STRT] Phase ‘common.build’ (id=45) Starting phase
UVM_INFO /home/agent/my_agent.sv(47) @ 0: uvm_test_top.my_env_i.my_agent_i [DEBUG] MY AGENT Starting my_agent build_phase
UVM_INFO /home/agent/my_agent.sv(72) @ 0: uvm_test_top.my_env_i.my_agent_i [DEBUG] MY AGENT Starting my_agent build_phase complete
UVM_INFO /home/agent/my_monitor.sv(48) @ 0: uvm_test_top.my_env_i.my_agent_i.my_mon [DEBUG] MY MONITOR my_monitor build_phase started
UVM_INFO /home/agent/my_monitor.sv(64) @ 0: uvm_test_top.my_env_i.my_agent_i.my_mon [DEBUG] MY MONITOR my_monitor build_phase complete
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1499) @ 0: reporter [PH/TRC/WAIT_PRED_OF_SUCC] Phase ‘common.build’ (id=45) *** No pred to succ other than myself, so ending phase***
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1356) @ 0: reporter [PH_END] Phase ‘common.build’ (id=45) ENDING PHASE
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1381) @ 0: reporter [PH/TRC/DONE] Phase ‘common.build’ (id=45) Completed phase
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1403) @ 0: reporter [PH/TRC/SCHEDULED] Phase ‘common.connect’ (id=57) Scheduled from phase common.build
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1124) @ 0: reporter [PH/TRC/STRT] Phase ‘common.connect’ (id=57) Starting phase
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1499) @ 0: reporter [PH/TRC/WAIT_PRED_OF_SUCC] Phase ‘common.connect’ (id=57) *** No pred to succ other than myself, so ending phase***
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1356) @ 0: reporter [PH_END] Phase ‘common.connect’ (id=57) ENDING PHASE
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1381) @ 0: reporter [PH/TRC/DONE] Phase ‘common.connect’ (id=57) Completed phase
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1403) @ 0: reporter [PH/TRC/SCHEDULED] Phase ‘common.end_of_elaboration’ (id=69) Scheduled from phase common.connect
UVM_INFO verilog_src/uvm-1.1d/src/base/uvm_phase.svh(1124) @ 0: reporter [PH/TRC/STRT] Phase ‘common.end_of_elaboration’ (id=69) Starting phase