mirror of https://github.com/zachjs/sv2v.git
12 lines
214 B
Systemverilog
12 lines
214 B
Systemverilog
|
|
module top;
|
||
|
|
typedef struct packed {
|
||
|
|
logic a;
|
||
|
|
logic b;
|
||
|
|
} foo_t;
|
||
|
|
foo_t foo;
|
||
|
|
initial begin
|
||
|
|
foo = '{a: 1'b1, default: '0};
|
||
|
|
$display(foo, foo.a, foo.b);
|
||
|
|
end
|
||
|
|
endmodule
|