mirror of https://github.com/zachjs/sv2v.git
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
|