yosys4gal/testcases/inout_tristate.v
2024-04-04 20:39:30 -05:00

11 lines
137 B
Verilog

module inout_tristate (
input a, b, c,
inout y,
output z
);
assign y = c && b ? a && b : 1'bz;
assign z = c ? a || b : y;
endmodule