Download VCS user guide

Transcript
vmm_notify::append_callback()
Registers a callback extension.
SystemVerilog
function void append_callback(int
notification_id,
vmm_notify_callbacks cbs);
OpenVera
task append_callback(integer event_id,
rvm_notify_callbacks cbs);
Description
Appends the specified callback extension to the list of registered
callbacks, for the specified notification. All registered callback
extensions are invoked, when the specified notification is indicated.
Example
Example A-159
class my_callbacks extends vmm_notify_callbacks;
virtual function void indicated(vmm_data status);
...
endfunction
endclass
program vmm_notify_test;
initial begin
int EVENT_A = 1;
vmm_log log = new("Notify event", "vmm_notify_test");
vmm_notify notify = new(log);
my_callbacks my_callbacks_inst = new;
void'(notify.configure(EVENT_A));
VMM User Guide
A-424