mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 17:31:40 +02:00
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
|