答案是否定的。 除了在build_phase中执行实例化的动作,其实还可以在new函数中执行实例化的动作。
如可以在my_agent的new函数中实例化driver和monitor:
function new(string name, uvm_component parent);
super.new(name, parent);
if (is_active == UVM_ACTIVE
答案是否定的。 除了在build_phase中执行实例化的动作,其实还可以在new函数中执行实例化的动作。
如可以在my_agent的new函数中实例化driver和monitor:
function new(string name, uvm_component parent);
super.new(name, parent);
if (is_active == UVM_ACTIVE