UVM编译时报错
时间:10-02
整理:3721RD
点击:
在顶层设计的时候,在initial块里面这样设计的:
initial
begin
uvm_config_db #(virtual bk_odua_pro_if)::set(null,"uvm_test_top.env.i_agt.drv","bk_odua_pro_if",top_bkif); //odua_case0,odua_case1 instance name is uvm_test_top
uvm_config_db #(virtual bk_odua_pro_if)::set(null,
"uvm_test_top.env.o_agt.mon","bk_odua_pro_if",top_bkif); // odua_case0,odua_case1 instance name is uvm_test_top
run_test("odua_case0");// an UVM global function,begin to initiate UVM
end
编译时报错:identifier 'run_test' has not been declared yet. If this error is not expected, please
check if you have set 'default_nettype' to none.
在平台设计中,并没有设置default_nettype为none。有知道的,请帮忙解答。
initial
begin
uvm_config_db #(virtual bk_odua_pro_if)::set(null,"uvm_test_top.env.i_agt.drv","bk_odua_pro_if",top_bkif); //odua_case0,odua_case1 instance name is uvm_test_top
uvm_config_db #(virtual bk_odua_pro_if)::set(null,
"uvm_test_top.env.o_agt.mon","bk_odua_pro_if",top_bkif); // odua_case0,odua_case1 instance name is uvm_test_top
run_test("odua_case0");// an UVM global function,begin to initiate UVM
end
编译时报错:identifier 'run_test' has not been declared yet. If this error is not expected, please
check if you have set 'default_nettype' to none.
在平台设计中,并没有设置default_nettype为none。有知道的,请帮忙解答。
没有把UVM的库导进去。
嗯,是的,在顶层加一句 import uvm_pkg::*;就ok了。