mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 09:28:12 +02:00
13 lines
238 B
Systemverilog
13 lines
238 B
Systemverilog
module Example(flag, out);
|
|
typedef struct packed {
|
|
logic a, b;
|
|
} T;
|
|
output T out;
|
|
input logic flag;
|
|
assign out =
|
|
flag
|
|
? '{ a: 1'b1, b: 1'b0 }
|
|
: '{ a: 1'b1, b: 1'b1 }
|
|
;
|
|
endmodule
|