Tables are
mislabeled as Table 5-1, Table 5-2 etc… Please fix table numbering
bit (*) unsigned char
logic (*) unsigned char
(*) Encodings
for bit and logic are given in file svdpi.h. Refer to
Section E.9.1.1.
The DPI
interface also supports the SystemVerilog and C unsigned integer data types
that correspond to the mappings Table E-1 shows for their signed equivalents.
The representation of
SystemVerilog-specific data types like packed bit and logic arrays is implementation-dependent and generally
transparent to the user. Nevertheless, for the sake of performance,
applications can be tuned for a specific implementation and make use of the
actual representation used by that implementation; such applications shall not
be binary compatible, however.
— byte, shortint, int, longint, real, shortreal, chandle, string
— packed bit
arrays up to 32 bits.
— scalar values
of type bit and logic
Encodings for bit and logic are
given in file svdpi.h. Refer to Section E.9.1.1.
/*
* functions for part select
*
* a narrow (<=32 bits) part select is copied between
* the implementation representation and a single chunk of
* canonical representation
*
Normalized ranges and indexing [n-1:0] are used for both arrays:
* the array in the implementation representation and the
canonical array.
*
*
s=source, d=destination, i=starting bit index,
w=width
* like for
variable part selects; limitations: w <= 32
*
* In part
select operations, the data is copied to or from the
* canonical
representation part ('chunk') designated by range [w-1:0]
* and the
implementation representation part designated by range [w+i-1:i].
*/