User guide

21-83
OpenVera Native Testbench
function semaphore $get_semaphore(int id);
Events
The OpenVera event data type is equivalent to the SystemVerilog
event data type. Events from either language can be passed (as
method arguments or return values) to the other language without
any conversion. The operations performed on events in a given
language are determined by the language syntax:
An event variable can be used in OpenVera in sync and trigger.
An event variable event1 can be used in SystemVerilog as follows:
event1.triggered //event1 triggered state property
->event1 //trigger event1
@(event1) //wait for event1
Strings
OpenVera and SystemVerilog strings are equivalent. Strings from
either language can be passed (as method arguments or return
values) to the other language without any conversion. In OpenVera,
null is the default value for a string. In SystemVerilog, the default
value is the empty string (""). It is illegal to assign null to a string
in SystemVerilog. Currently, NTB-OV treats "" and null as distinct
constants (equality fails).
Enumerated Types
SystemVerilog enumerated types have arbitrary base types and are
not generally compatible with OpenVera enumerated types. A
SystemVerilog enumerated type will be implicitly converted to the