[source]

Class uvm_callback

uvm_pkg::uvm_callback + reporter : uvm_report_object + type_name : string + callback_mode(): bit + get_type_name(): string + is_enabled(): bit uvm_pkg::uvm_report_catcher uvm_pkg::uvm_phase_cb uvm_pkg::uvm_objection_callback uvm_pkg::uvm_reg_cbs uvm_pkg::uvm_vreg_field_cbs uvm_pkg::uvm_vreg_cbs

Inheritance Diagram of uvm_callback

uvm_pkg::uvm_callback + reporter : uvm_report_object + type_name : string + callback_mode(): bit + get_type_name(): string + is_enabled(): bit uvm_pkg::uvm_report_object reporter

Collaboration Diagram of 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.

Variables

Name

Type

Description

reporter

uvm_report_object

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).

function bit is_enabled ( ) [source]

Returns 1 if the callback is enabled, 0 otherwise.

virtual function string get_type_name ( ) [source]

Returns the type name of this callback object.