Call backs

In reply to chr_sue:

Hi

I ran the code now I am getting other error i.e., Bad handle or reference.

and in my error test I given derived_callback only not derived_cb. My other doubt is when I am adding callbacks that line is showing errors can you please check.

When I am running main test I am not getting any errors when I am running err_test I am getting compile errors can you please check and help me

code link:

Error message:
UVM_INFO test.sv(25) @ 0: uvm_test_top [TEST] we are ending build phase of my test

UVM_INFO test.sv(26) @ 0: uvm_test_top [seq:body:config_db found] uvm_test_top

** Fatal: (SIGSEGV) Bad handle or reference.

Time: 0 ns Iteration: 10 Process: /uvm_pkg::uvm_phase::m_run_phases/fork#2213_7f5d6829eb7 File: /usr/share/questa/questasim/linux_x86_64/…/verilog_src/uvm-1.2/src/base/uvm_callback.svh

Fatal error in Function uvm_pkg/uvm_callbacks::add at /usr/share/questa/questasim/linux_x86_64/…/verilog_src/uvm-1.2/src/base/uvm_callback.svh line 590

HDL call sequence:

Stopped at /usr/share/questa/questasim/linux_x86_64/…/verilog_src/uvm-1.2/src/base/uvm_callback.svh 15 Function uvm_pkg/uvm_callbacks::add - -

called from /usr/share/questa/questasim/linux_x86_64/…/verilog_src/uvm-1.2/src/base/uvm_common_phases.svh 65 Function uvm_pkg/uvm_build_phase::exec_func - -

called from /usr/share/questa/questasim/linux_x86_64/…/verilog_src/uvm-1.2/src/base/uvm_topdown_phase.svh 111 Function uvm_pkg/uvm_topdown_phase::execute - -

called from /usr/share/questa/questasim/linux_x86_64/…/verilog_src/uvm-1.2/src/base/uvm_topdown_phase.svh 78 Function uvm_pkg/uvm_topdown_phase::traverse - -

called from /usr/share/questa/questasim/linux_x86_64/…/verilog_src/uvm-1.2/src/base/uvm_topdown_phase.svh 95 Function uvm_pkg/uvm_topdown_phase::traverse - -

called from /usr/share/questa/questasim/linux_x86_64/…/verilog_src/uvm-1.2/src/base/uvm_phase.svh 1390 Task uvm_pkg/uvm_phase::execute_phase - -

called from /usr/share/questa/questasim/linux_x86_64/…/verilog_src/uvm-1.2/src/base/uvm_phase.svh 2213 Task uvm_pkg/uvm_phase::m_run_phases - -

exit

End time: 06:14:09 on Jun 14,2022, Elapsed time: 0:00:04

Errors: 1, Warnings: 7

Done

Thanks in Advance
Harsha