[source]

Class uvm_pkg::uvm_default_factory

CLASS

uvm_default_factory

Default implementation of the UVM factory.

Functions

register(uvm_object_wrapper obj)

Function

register

Registers the given proxy object, obj , with the factory. Register

Parameters:

obj (uvm_object_wrapper)

set_inst_override_by_type(uvm_object_wrapper original_type, uvm_object_wrapper override_type, string full_inst_path)

Function

set_inst_override_by_type. Set_inst_override_by_type

Parameters:
set_inst_override_by_name(string original_type_name, string override_type_name, string full_inst_path)

Function

set_inst_override_by_name

Configures the factory to create an object of the override's type whenever a request is made to create an object of the original type using a context that matches full_inst_path . Set_inst_override_by_name

Parameters:
  • original_type_name (string)

  • override_type_name (string)

  • full_inst_path (string)

set_type_override_by_type(uvm_object_wrapper original_type, uvm_object_wrapper override_type, bit replace = 1)

Function

set_type_override_by_type. Set_type_override_by_type

Parameters:
set_type_override_by_name(string original_type_name, string override_type_name, bit replace = 1)

Function

set_type_override_by_name

Configures the factory to create an object of the override's type whenever a request is made to create an object of the original type, provided no instance override applies. Set_type_override_by_name

Parameters:
  • original_type_name (string)

  • override_type_name (string)

  • replace (bit)

create_object_by_type(uvm_object_wrapper requested_type, string parent_inst_path = "", string name = "")

Function

create_object_by_type. Create_object_by_type

Parameters:
Return type:

uvm_object

create_component_by_type(uvm_object_wrapper requested_type, string parent_inst_path = "", string name, uvm_component parent)

Function

create_component_by_type. Create_component_by_type

Parameters:
Return type:

uvm_component

create_object_by_name(string requested_type_name, string parent_inst_path = "", string name = "")

Function

create_object_by_name. Create_object_by_name

Parameters:
  • requested_type_name (string)

  • parent_inst_path (string)

  • name (string)

Return type:

uvm_object

create_component_by_name(string requested_type_name, string parent_inst_path = "", string name, uvm_component parent)

Function

create_component_by_name

Creates and returns a component or object of the requested type, which may be specified by type or by name. Create_component_by_name

Parameters:
  • requested_type_name (string)

  • parent_inst_path (string)

  • name (string)

  • parent (uvm_component)

Return type:

uvm_component

debug_create_by_type(uvm_object_wrapper requested_type, string parent_inst_path = "", string name = "")

Function

debug_create_by_type. Debug_create_by_type

Parameters:
debug_create_by_name(string requested_type_name, string parent_inst_path = "", string name = "")

Function

debug_create_by_name

These methods perform the same search algorithm as the create_* methods, but they do not create new objects. Debug_create_by_name

Parameters:
  • requested_type_name (string)

  • parent_inst_path (string)

  • name (string)

find_override_by_type(uvm_object_wrapper requested_type, string full_inst_path)

Function

find_override_by_type. Find_override_by_type

Parameters:
Return type:

uvm_object_wrapper

find_override_by_name(string requested_type_name, string full_inst_path)

Function

find_override_by_name

These methods return the proxy to the object that would be created given the arguments. Find_override_by_name

Parameters:
  • requested_type_name (string)

  • full_inst_path (string)

Return type:

uvm_object_wrapper

find_wrapper_by_name(string type_name)

Find_wrapper_by_name

Parameters:

type_name (string)

Return type:

uvm_object_wrapper

print(int all_types = 1)

Function

print

Prints the state of the uvm_factory, including registered types, instance overrides, and type overrides. Print

Parameters:

all_types (int)

check_inst_override_exists(uvm_object_wrapper original_type, uvm_object_wrapper override_type, string full_inst_path)

Check_inst_override_exists

Parameters: