mirror of https://github.com/zachjs/sv2v.git
17 lines
268 B
Systemverilog
17 lines
268 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;
|
||
|
|
initial begin
|
||
|
|
w <= local_t'(1'sb1);
|
||
|
|
$display("%b", w);
|
||
|
|
end
|
||
|
|
endmodule
|