blob: 45fd3df87e936539259342bd05c8a2e7d986c6f8 [file]
`include "./not/not.sim.v"
(* MODES="PASSTHROUGH;INVERT" *)
module INV(I, O);
input wire I;
output wire O;
parameter MODE="PASSTHROUGH";
// Passthrough (no inversion) mode
generate if (MODE == "PASSTHROUGH") begin
assign O = I;
// Inversion with placeable inverter
end else if (MODE == "INVERT") begin
NOT inverter(I, O);
end endgenerate
endmodule