mirror of https://github.com/zachjs/sv2v.git
13 lines
246 B
Systemverilog
13 lines
246 B
Systemverilog
|
|
module top;
|
||
|
|
typedef struct packed {
|
||
|
|
integer x;
|
||
|
|
byte y;
|
||
|
|
} S;
|
||
|
|
typedef struct packed {
|
||
|
|
byte x;
|
||
|
|
shortint y;
|
||
|
|
S z;
|
||
|
|
} T;
|
||
|
|
initial $display("%b", T'{ x: 1, y: 2, z: '{ x: 3, y: 4 } });
|
||
|
|
endmodule
|