仿真报错:
Requested test from command line +UVM_TESTNAME=XXX_sequence not found
思路:
- 检查UVM_TESTNAME启动的类名是否错误。
- 检查UVM_TESTNAME启动的类名是否不是component。
run_test()里启动的是component类及其子类,包括
env
,uvm_test
,agent
。而sequence 是object类,不能run_test()里启动。
- 检查component类是否注册到factory里。使用 `uvm_component_utils(xxx_component),如下
class xxx_component extends uvm_component;//或者uvm_test、uvm_agent、uvm_driver等9个基本
`uvm_component_utils(xxx_component)
endclass : xxx_component