马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
新手试验UVM,编译通过后用+UVM_TESTNAME=case_test#(8)调用测试序列,仿真器报错# UVM_WARNING @ 0: reporter [BDTYP] Cannot create a component of type 'case_test' because it is not registered with the factory.
# UVM_FATAL @ 0: reporter [INVTST] Requested test from call to run_test(case_test) not found.
#
但在cset_test中已经通过 `uvm_object_param_utils(test_case_sequence#(DATA_WIDTH))注册了,代码如下:
class case_test#(byte DATA_WIDTH=8) extends base_test#(DATA_WIDTH);
`uvm_component_param_utils(case_test#(DATA_WIDTH))
function new(string name = "case_test",uvm_component parent=null);
super.new(name,parent);
endfunction
function void build_phase(uvm_phase phase);
super.build_phase(phase);
uvm_config_db#(uvm_object_wrapper)::set(this,"test_env.i_agent.sqr.main_phase","default_sequence",test_case_sequence#(DATA_WIDTH)::type_id::get());
endfunction
endclass
请教高手大神给解答下 |