sv2v/test/basic/struct_default.sv

12 lines
214 B
Systemverilog
Raw Normal View History

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