Class uvm_callback
- uvm_pkg :: uvm_void
Name |
Type |
Description |
---|---|---|
reporter |
||
type_name |
string |
Constructors
- function new ( string name ) [source]
Creates a new uvm_callback object, giving it an optional name .
Functions
- function bit callback_mode ( int on ) [source]
Enable/disable callbacks (modeled like rand_mode and constraint_mode).
×
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.