User guide
24-183
SystemVerilog Testbench Constructs
try_peek(variable)
Assigns the value of the first message to the variable without
removing the message. If the mailbox is empty, this method
returns the 0 value. If the message is available, this method
returns a non-zero value. After returning the value, VCS executes
the next statement.
Note VCS does an assignment compatibility check instead of
equivalent types check for the mailbox methods.
Events
SystemVerilog has a number of extensions to named events. These
extensions are as follows:
Waiting for an Event
Persistent Trigger
Merging Events
Reclaiming Named Events
Event Comparison
Waiting for an Event
You can enter a hierarchical name for a named event in an event
control.
`timescale 1ns/1ns
program prog;