4-state
Verilog-2001 data type, 64-bit unsigned integer
1
The real
and shortreal types are represented as described by
IEEE 734-1985 754-1985,
an IEEE standard for floating point numbers.
Chandles can be inserted
into associative arrays (refer to Section 4.9), but the relative ordering of
any two entries in such an associative array can vary, even between successive
runs of the same tool.
module sub(intf_i_i intf_i p)
typedef p.data_t my_data_t;
my_data_t data;
// type of data
will be int when connected to interface above
endmodule
struct { bit [7:0] opcode; bit [23:0] addr; }IR; // anonymous structure
// defines
variable IR
IR.opcode = 1; // set
field in IR.
typedef union tagged {
struct {
bit
[4:0] reg1, reg2, regd;
} Add;
union tagged {
bit
[9:0] JmpU;
struct {
bit
[1:0] cc,;
bit
[9:0] addr;
} JmpC;
} Jmp;
} Instr;
function Packet genPkt();
Packet
p;
void( randomize( p.address, p.length, p.payload )
with { p.length > 1 && p.payload.size == p.length } );
p.chksum = p.payload.xor()p.payload.xor();
return p;
endfunction