mirror of https://github.com/zachjs/sv2v.git
17 lines
271 B
Systemverilog
17 lines
271 B
Systemverilog
|
|
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
|