User guide
19-41
Using the VCS / SystemC Cosimulation Interface
For the integral data types in the above table, the signed and unsigned
qualifiers are allowed and map to the equivalent C unsigned data type.
All array types listed in the above table are passed as pointers to the
specific data types. There are two exceptions to this rule:
• Open arrays, which are only allowed for the SystemVerilog calling
SystemC direction, are passed using handles (void *). The
SystemVerilog standard defines the rules for accessing the data
within these open arrays.
•
Packed bit arrays with sizes <= 32 in input direction (for example,
input bit [31:0] myarg) are passed by value of type
svBitVec32. Basically, this type is an unsigned int, and the
individual bits can be accessed by proper masking.
inout | output longint long long*
input real double
inout | output real double*
input shortreal float
inout | output shortreal float*
input chandle void*
inout | output chandle void**
input string char*
inout | output string char**
input bit unsigned char
inout | output bit unsigned char*
input logic unsigned char
inout | output logic unsigned char*
SystemVerilog SystemC