User guide
22-3
SystemVerilog Design Constructs
You can also use the signed keyword to make the bit and logic
data types store signed values.
Note:
In SystemVerilog the Verilog-2001 integer data type defaults
to a signed value.
The two state data types begin simulation with the 0 value.
Assignments of the Z or X values to these data types result in an
assignment of the 0 value.
There is also the void data type that represents non-existent data.
This data type can be used to specify that a function has no return
value. For example:
function void nfunc (bit [31:0] ia);
.
.
.
endfunction
The chandle Data Type
The chandle data type is for pointers that you pass using the DPI.
The DPI and the chandle data type are LCA features requiring a
special license.
The following example shows the use of the chandle data type:
program Test(input clk);
typedef struct packed {
time t;
int packet_id;
// more stuff
} Transaction;