Class uvm_pkg::uvm_callback
- uvm_pkg :: uvm_void
Inheritance Diagram of uvm_callback
Collaboration Diagram of uvm_callback
Name |
Type |
Description |
---|---|---|
reporter |
||
type_name |
string |
Constructors
- new(string name = "uvm_callback")
Function
new
Creates a new uvm_callback object, giving it an optional name .
- Parameters:
name (string)
Functions
- callback_mode(int on = -1)
Function
callback_mode
Enable/disable callbacks (modeled like rand_mode and constraint_mode).
- Parameters:
on (int)
- is_enabled()
Function
is_enabled
Returns 1 if the callback is enabled, 0 otherwise.
- get_type_name()
Function
get_type_name
Returns the type name of this callback object.
×
CLASS
uvm_callback
The uvm_callback class is the base class for user-defined callback classes. Typically, the component developer defines an application-specific callback class that extends from this class. In it, he defines one or more virtual methods, called a callback interface , that represent the hooks available for user override.
Methods intended for optional override should not be declared pure. Usually, all the callback methods are defined with empty implementations so users have the option of overriding any or all of them.
The prototypes for each hook method are completely application specific with no restrictions.