[source]

Class uvm_pkg::uvm_event

CLASS

uvm_event#(T)

The uvm_event class is an extension of the abstract uvm_event_base class.

The optional parameter T allows the user to define a data type which can be passed during an event trigger.

Parameters

Name

Default value

Description

T

uvm_object

Variables

Name

Type

Description

type_name

string

Constructors

new(string name = "")

Function

new

Creates a new event object.

Parameters:

name (string)

Functions

trigger(uvm_object data = null)

Function

trigger

Triggers the event, resuming all waiting processes.

An optional data argument can be supplied with the enable to provide trigger-specific information.

Parameters:

data (uvm_object)

get_trigger_data()

Function

get_trigger_data

Gets the data, if any, provided by the last call to trigger.

Return type:

T

get_type_name()
add_callback(uvm_event_callback#(uvm_object) cb, bit append = 1)

Function

add_callback

Registers a callback object, cb , with this event. The callback object may include pre_trigger and post_trigger functionality. If append is set to 1, the default, cb is added to the back of the callback list. Otherwise, cb is placed at the front of the callback list.

Parameters:
delete_callback(uvm_event_callback#(uvm_object) cb)

Function

delete_callback

Unregisters the given callback, cb , from this event.

Parameters:

cb (uvm_event_callback#(uvm_object))

do_print(uvm_printer printer)
Parameters:

printer (uvm_printer)

do_copy(uvm_object rhs)
Parameters:

rhs (uvm_object)

create(string name = "")
Parameters:

name (string)

Return type:

uvm_object

Tasks

wait_trigger_data(uvm_object data)

Task

wait_trigger_data

This method calls uvm_event_base::wait_trigger followed by get_trigger_data.

Parameters:

data (uvm_object)

wait_ptrigger_data(uvm_object data)

Task

wait_ptrigger_data

This method calls uvm_event_base::wait_ptrigger followed by get_trigger_data.

Parameters:

data (uvm_object)