uvm_misc

uvm.base.uvm_misc.isunknown(value)[source]
uvm.base.uvm_misc.uvm_get_array_index_string(arg: str, is_wildcard: int) str[source]

Function- uvm_get_array_index_string Args: Returns:

uvm.base.uvm_misc.uvm_bitstream_to_string(value, size, radix=0, radix_str='') str[source]

Function- uvm_bitstream_to_string

Parameters
  • value (int) –

  • size

  • radix

  • radix_str

Returns

Given number as string.

Return type

str

uvm.base.uvm_misc.uvm_integral_to_string(value, size, radix=0, radix_str='') str[source]

Function- uvm_integral_to_string

Parameters
  • value (int) –

  • size (int) –

  • radix

  • radix_str (str) –

Return type

str

uvm.base.uvm_misc.uvm_object_value_str(v) str[source]

Function- uvm_object_value_str

Parameters

v (object) – Object to convert to string.

Returns

Inst ID for UVMObject, otherwise uses str()

Return type

str

uvm.base.uvm_misc.uvm_leaf_scope(full_name: str, scope_separator='.') str[source]

Function- uvm_leaf_scope

Parameters
  • full_name (str) –

  • scope_separator (str) –

Returns

Leaf scope name without any brackets/indexing.

Return type

str

uvm.base.uvm_misc.get_bracket_match(scope_separator: str) str[source]
uvm.base.uvm_misc.num_with_radix(radix, radix_str: str, value) str[source]
class uvm.base.uvm_misc.ProcessContainerC(p_)[source]

Bases: object

class uvm.base.uvm_misc.UVMStatusContainer[source]

Bases: object

Internal class to contain status information for automation methods.

field_array: Dict[str, bool] = {}
print_matches = False
do_field_check(field, obj)[source]
get_function_type(what: int) str[source]
get_full_scope_arg()[source]

Returns:

m_do_cycle_check(scope)[source]
uvm.base.uvm_misc.m_uvm_string_queue_join(i: int) str[source]
class uvm.base.uvm_misc.UVMUtils[source]

Bases: object

classmethod find_all(start, TYPE)[source]

Function: find_all

Recursively finds all component instances of the parameter type TYPE, starting with the component given by start. Uses <uvm_root::find_all>.

Parameters
  • start

  • TYPE

Returns:

classmethod create_type_by_name(type_name, contxt)[source]
classmethod get_config(comp, is_fatal)[source]

This method gets the object config of type TYPE associated with component comp. We check for the two kinds of error which may occur with this kind of operation.

Parameters
  • cls

  • comp

  • is_fatal

Returns: