mirror of https://github.com/zachjs/sv2v.git
17 lines
270 B
Systemverilog
17 lines
270 B
Systemverilog
|
|
module top;
|
||
|
|
typedef struct packed {
|
||
|
|
logic a, b;
|
||
|
|
} T;
|
||
|
|
typedef struct packed {
|
||
|
|
logic x;
|
||
|
|
T y;
|
||
|
|
} S;
|
||
|
|
|
||
|
|
localparam WIDTH = 1;
|
||
|
|
S [WIDTH] s = '{
|
||
|
|
'{x: 1, y: '{a: 1, b: 0}}
|
||
|
|
};
|
||
|
|
|
||
|
|
initial #1 $display("%b", s);
|
||
|
|
endmodule
|