About[]
A logic gate performs a logical operation on one or more logic inputs and produces a single logic output. The logic normally performed is Boolean logic and is most commonly found in digital circuits. Logic gates are primarily implemented electronically using diodes or transistors, but can also be constructed using electromagnetic relays, fluidics, optics, molecules, or even mechanical elements.
In electronic logic, a logic level is represented by a voltage or current, (which depends on the type of electronic logic in use). Each logic gate requires power so that it can source and sink currents to achieve the correct output voltage. In logic circuit diagrams the power is not shown, but in a full electronic schematic, power connections are required.
Symbols[]
There are two sets of symbols in common use, both now defined by American National Standards Institute (ANSI)/Institute of Electrical and Electronics Engineers (IEEE) Std 911984 and its supplement ANSI/IEEE Std 91a1991. The "distinctive shape" set, based on traditional schematics, is used for simple drawings and is quicker to draw by hand. It is sometimes unofficially described as "military", reflecting its origin if not its modern usage. The "rectangular shape" set, based on International Electrotechnical Commission (IEC) 6061712, has rectangular outlines for all types of gate, and allows representation of a much wider range of devices than is possible with the traditional symbols. The IEC's system has been adopted by other standards, such as European Committee for Standardization 6061712:1999 in Europe and British Standard EN 6061712:1999 in the United Kingdom.
The goal of IEEE Std 911984 was to provide a uniform method of describing the complex logic functions of digital circuits with schematic symbols. These functions were more complex than simple AND and OR gates. They could be medium scale circuits such as a 4bit counter to a large scale circuits such as a microprocessor. The 1984 version did not include the "distinctive shape" symbols. These were added to the 1991 supplement with this note: "The distinctiveshape symbol is, according to IEC Publication 617, Part 12, not preferred, but is not considered to be in contradiction to that standard."
In the 1980s, schematics were the predominant method to design both circuit boards and custom ICs known as gate arrays. Today custom ICs and the fieldprogrammable gate array are typically designed with Hardware description languageHardware Description Language (HDL) such as Verilog or VHDL. The need for complex logic symbols has diminished and distinctive shape symbols are still the predominate style. The basics of digital logic  things like zeros and ones (0s and 1s) and how you can represent signals as sequences of zeroes and ones.^{[1]}
Type  Distinctive shape  Boolean algebra between A & B  Truth table  

 
 
 
In electronics a NOT gate is more commonly called an inverter. The circle on the symbol is called a bubble, and is generally used in circuit diagrams to indicate an inverted (activelow) input or output.^{[2]}  
 
 
 

In practice, the cheapest gate to manufacture is usually the NAND gate. Additionally, Charles Sanders Peirce (1880) showed that NAND gates alone (as well as NOR gates alone) can be used to reproduce the functions of all the other logic gates, but his work on it was unpublished until 1935. The first published proof was by Henry M. Sheffer in 1913.
The 7400 chip, containing four NANDs. The two additional pins supply power (+5 V) and connect the ground.
Two more gates are the exclusiveOR or XOR function and its inverse, exclusiveNOR or XNOR. The two input ExclusiveOR is true only when the two input values are different, false if they are equal, regardless of the value. If there are more than two inputs, the gate generates a true at its output if the number of trues at its input is odd. In practice, these gates are built from combination's of simpler logic gates.
Logic gates (or simply gates) are the fundamental building blocks of digital circuitry. As their name implies, they function by "opening" or "closing" to admit or reject the flow of digital information. Gates implement electronically simple logical operations on boolean (Bool’s algebra) variables, i.e. variables that can have only one of two states (0/1, low/high, false/true).^{[3]}
References[]
 ↑ E. J. Mastascusa . "Gates." Bucknell University . 2008. http://www.facstaff.bucknell.edu/mastascu/eLessonsHTML/Logic/Logic4.html
 ↑ Winfield Hill and Paul Horowitz. The Art of Electronics. Cambridge University Press. 1989. isbn = 0521377099. [1]
 ↑ Prof. C. E. Efstathiou. "Digital Electronics: Gates, Decoders, Multiplexers." Accessdate 1/2/2016. http://www.chem.uoa.gr/applets/appletgates/appl_gates2.html