# Miscellaneous Structures

Contents

Miscellaneous Structures |
uvm_void | The uvm_void class is the base class for all UVM classes.
uvm_utils #(TYPE,FIELD) | This class contains useful template functions.

## uvm_void

The uvm_void class is the base class for all UVM classes. It is an abstract class with no data members or functions. It allows for generic containers of objects to be created, similar to a void pointer in the C programming language. User classes derived directly from uvm_void inherit none of the UVM functionality, but such classes may be placed in uvm_void-typed containers along with other UVM objects.

Summary

uvm_void
The uvm_void class is the base class for all UVM classes.
Class Declaration
> virtual class uvm_void

## uvm_utils #(TYPE,FIELD)

This class contains useful template functions.

Summary

uvm_utils #(TYPE,FIELD)
This class contains useful template functions.
Class Declaration
> class uvm_utils #(
> | type | TYPE | = | int,
> | string | FIELD | = | "config"
> )
Methods |
find_all | Recursively finds all component instances of the parameter type TYPE, starting with the component given by start.
get_config | This method gets the object config of type TYPE associated with component comp.

### Methods

### find_all

> static function types_t find_all(
> | uvm_component | start
> )

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

### get_config

> static function TYPE get_config(
> | uvm_component | comp,
> | bit | is_fatal
> )

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.

> virtual class uvm_void

The uvm_void class is the base class for all UVM classes.

> class uvm_utils #(
> | type | TYPE | = | int,
> | string | FIELD | = | "config"
> )

This class contains useful template functions.

> static function types_t find_all(
> | uvm_component | start
> )

Recursively finds all component instances of the parameter type TYPE, starting with the component given by start.

> static function TYPE get_config(
> | uvm_component | comp,
> | bit | is_fatal
> )

This method gets the object config of type TYPE associated with component comp.

> function void find_all (
> |  | string | comp_match, |  |
> | ref | uvm_component | comps[$], |  |
> | input | uvm_component | comp | = | null
> )

Returns the component handle (find) or list of components handles (find_all) matching a given string.