yosys4gal/techmaps/tristate.v
2024-04-04 20:39:30 -05:00

18 lines
231 B
Verilog

module GAL_INOUT_TRI(A, E, I, Y);
input A, E;
output I;
inout Y;
generate
GAL_OLMC #(
REGISTERED = 0,
INVERTED = 0
) _TECHMAP_REPLACE_ (
.A(A),
.C(1'bX),
.E(E),
.Y(E ? Y : I);
);
endgenerate
endmodule