Files

17 lines
271 B
Systemverilog
Raw Permalink Normal View History

2020-07-21 18:05:27 -06:00
package PKG;
typedef struct packed {
logic f;
} foo_t;
endpackage
module top;
typedef struct packed {
PKG::foo_t f;
} local_t;
local_t w[0:1];
initial begin
w <= '{default: 0};
$display("%b", w);
end
endmodule