In electronics, a logic gate is an idealized or physical device implementing a Boolean function; that is, it performs a logical operation on one or more binary inputs and produces a single binary output. ... In modern practice, most gates are made from MOSFETs (metal–oxide–semiconductor field-effect transistors).