blob: 45ae6e5c5af4e0ef7868e88f4eb1069c1b2b6a34 [file]
/*
* Copyright (C) 2020 The SymbiFlow Authors.
*
* Use of this source code is governed by a ISC-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/ISC
*/
`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