篇2-factory机制创建实例

1.1. class_name::type_id::create(name, parent)

(1) factory机制下独特的实例化方法;

篇2-factory机制创建实例

 

1.2. create_object_by_name

function uvm_object uvm_factory::create_object_by_name(string requested_type_name, string parent_inst_path=””, string name=””);

篇2-factory机制创建实例

1.3. create_object_by_type

function uvm_object uvm_factory::create_object_by_type(uvm_object_wrapper requested_type, string parent_inst_path=””, string name=””);

篇2-factory机制创建实例

1.4. create_component_by_name

function uvm_component uvm_factory::create_component_by_name(string requested_type_name, string parent_inst_path=””, string name, uvm_component parent);

篇2-factory机制创建实例

1.5. create_component_by_type

function uvm_component uvm_factory::create_component_by_type (uvm_object_wrapper requested_type, string parent_inst_path=””, string name, uvm_component parent);

篇2-factory机制创建实例

上一篇:设计模式概览


下一篇:RabbitMQ消息队列保姆级教程