debug
编译pkg时找不到agent这个component;
# UVM_WARNING @ 0: reporter [BDTYP] Cannot create a component of type ‘xxx_agent’ because it is not registered with the factory.
** at xxx_env.sv(6): Invalid type ‘xxx_agent’. Please check the type of the variable ‘agt_h’.
最后发现,在agent.sv这个文件之前,某个文件中的条件编译使用了
`ifndef LAYER_AGENT_SV
`define LAYER_AGENT_SV
class xxx
...
endclass
`endif
导致agent没有被编译