All Topics  
Logic gate

 

   Email Print
   Bookmark   Link






 

Logic gate



 
 
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
Boolean logic

Boolean algebra is a logical calculus of logical values, developed by George Boole in the late 1830s. It resembles the algebra of real numbers as taught in high school, but with the numeric operations of multiplication xy, addition x + y, and negation −x replaced by the respective logical operations of conjun...
 and is most commonly found in digital circuit
Digital circuit

Digital electronics are electronics systems that use digital signals. Digital electronics are representations of Boolean algebra and are used in computers, mobile phones, and other consumer products....
s. Logic gates are primarily implemented electronically
Electronics

Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
 using diode
Diode

In electronics, a diode is a two-terminal device .Diodes have two active electrodes between which the signal of interest may flow, and most are used for their unidirectional electric current property....
s or transistor
Transistor

In electronics, a transistor is a semiconductor device commonly used to Electronic amplifier or switch Electronics signals. A transistor is made of a solid piece of a semiconductor material, with at least three terminals for connection to an external circuit....
s, but can also be constructed using electromagnetic relay
Relay

A relay is an electrical switch that opens and closes under the control of another electrical circuit. In the original form, the switch is operated by an magnet to open or close one or many sets of contacts....
s, fluidics
Fluidics

Fluidics is the use of a fluid or compressible medium to perform analog signal or digital operations similar to those performed with electronics....
, optics
Optics

Optics is the study of the behavior and properties of light including its optical phenomena with matter and its imaging by optical instruments....
, molecules
Molecular logic gate

A molecular logic gate is a molecule that performs a logical operation on one or more logic inputs and produces a single logic output. Much academic research is dedicated to the development of these systems and several prototypes now exist....
, or even mechanical
Analytical engine

The analytical engine, an important step in the history of computers, was the design of a mechanical general-purpose computer by the British mathematician Charles Babbage....
 elements.

In electronic logic, a logic level is represented by a voltage or current, (which depends on the type of electronic logic in use).






Discussion
Ask a question about 'Logic gate'
Start a new discussion about 'Logic gate'
Answer questions from other users
Full Discussion Forum



Encyclopedia


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
Boolean logic

Boolean algebra is a logical calculus of logical values, developed by George Boole in the late 1830s. It resembles the algebra of real numbers as taught in high school, but with the numeric operations of multiplication xy, addition x + y, and negation −x replaced by the respective logical operations of conjun...
 and is most commonly found in digital circuit
Digital circuit

Digital electronics are electronics systems that use digital signals. Digital electronics are representations of Boolean algebra and are used in computers, mobile phones, and other consumer products....
s. Logic gates are primarily implemented electronically
Electronics

Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
 using diode
Diode

In electronics, a diode is a two-terminal device .Diodes have two active electrodes between which the signal of interest may flow, and most are used for their unidirectional electric current property....
s or transistor
Transistor

In electronics, a transistor is a semiconductor device commonly used to Electronic amplifier or switch Electronics signals. A transistor is made of a solid piece of a semiconductor material, with at least three terminals for connection to an external circuit....
s, but can also be constructed using electromagnetic relay
Relay

A relay is an electrical switch that opens and closes under the control of another electrical circuit. In the original form, the switch is operated by an magnet to open or close one or many sets of contacts....
s, fluidics
Fluidics

Fluidics is the use of a fluid or compressible medium to perform analog signal or digital operations similar to those performed with electronics....
, optics
Optics

Optics is the study of the behavior and properties of light including its optical phenomena with matter and its imaging by optical instruments....
, molecules
Molecular logic gate

A molecular logic gate is a molecule that performs a logical operation on one or more logic inputs and produces a single logic output. Much academic research is dedicated to the development of these systems and several prototypes now exist....
, or even mechanical
Analytical engine

The analytical engine, an important step in the history of computers, was the design of a mechanical general-purpose computer by the British mathematician Charles Babbage....
 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.

Truth table

A truth table is a table that describes the behaviour of a logic gate. It lists the value of the output for every possible combination of the inputs and can be used to simplify the number of logic gates and level of nesting in an electronic circuit. In general the truth table does not lead to an efficient implementation; a minimization procedure, using Karnaugh maps, the Quine–McCluskey algorithm
Quine–McCluskey algorithm

The Quine?McCluskey algorithm is a method used for minimization of boolean functions which was developed by Willard Van Orman Quine and Edward J....
 or a heuristic algorithm is required for reducing the circuit complexity.

Background

The simplest form of electronic logic is diode logic
Diode logic

Diode logic or Diode-resistor logic, is a circuit style that uses diodes to construct Boolean logic logic gates for electrical circuit. Only non-inverter functions may be implemented, so it is not a complete logic family....
. This allows AND and OR gates to be built, but not inverters, and so is an incomplete form of logic. Further, without some kind of amplification it is not possible to have such basic logic operations cascaded as required for more complex logic functions. To build a functionally complete logic system, relay
Relay

A relay is an electrical switch that opens and closes under the control of another electrical circuit. In the original form, the switch is operated by an magnet to open or close one or many sets of contacts....
s, valves (vacuum tubes), or transistor
Transistor

In electronics, a transistor is a semiconductor device commonly used to Electronic amplifier or switch Electronics signals. A transistor is made of a solid piece of a semiconductor material, with at least three terminals for connection to an external circuit....
s can be used. The simplest family of logic gates using bipolar transistors is called resistor-transistor logic
Resistor-transistor logic

File:RTL NPN NOR Gate.svgFile:RTL 3-Input NOR Gate.svgResistor?transistor logic is a class of digital circuits built using resistors as the input network and bipolar junction transistors as switching devices....
, or RTL. Unlike diode logic gates, RTL gates can be cascaded indefinitely to produce more complex logic functions. These gates were used in early integrated circuit
Integrated circuit

In electronics, an integrated circuit is a miniaturized electronic circuit that has been manufactured in the surface of a thin Wafer of semiconductor material....
s. For higher speed, the resistors used in RTL were replaced by diodes, leading to diode-transistor logic
Diode-transistor logic

Diode?Transistor Logic is a class of digital circuits built from bipolar junction transistors , diodes and resistors; it is the direct ancestor of transistor?transistor logic....
, or DTL. It was then discovered that one transistor could do the job of two diodes in the space of one diode even better, by more quickly switching off the following stage, so transistor-transistor logic
Transistor-transistor logic

File:68k ttl.jpgTransistor?transistor logic is a class of digital circuits built from bipolar junction transistors and resistors. It is called transistor?transistor logic because both the logic gating function and the amplifying function are performed by transistors ....
, or TTL, was created. In virtually every type of contemporary chip implementation of digital systems, the bipolar transistors have been replaced by complementary field-effect transistors (MOSFET
MOSFET

The metal?oxide?semiconductor field-effect transistor is a device used to amplify or switch electronic signals. The basic principle of the device was first proposed by Julius Edgar Lilienfeld in 1925....
s) to reduce size and power consumption still further, thereby resulting in complementary metal–oxide–semiconductor (CMOS
CMOS

Complementary metal?oxide?semiconductor , is a major class of integrated circuits. CMOS technology is used in microprocessors, microcontrollers, Static Random Access Memory, and other digital logic circuits....
) logic.

For small-scale logic, designers now use prefabricated logic gates from families of devices such as the TTL
Transistor-transistor logic

File:68k ttl.jpgTransistor?transistor logic is a class of digital circuits built from bipolar junction transistors and resistors. It is called transistor?transistor logic because both the logic gating function and the amplifying function are performed by transistors ....
 7400 series
7400 series

The 7400 series of Transistor-transistor logic integrated circuits are historically important as the first widespread logic family of TTL integrated circuit logic ....
 by Texas Instruments
Texas Instruments

Texas Instruments , better known in the electronics industry as TI, is an United States company based in Dallas, Texas, Texas, United States, renowned for developing and commercializing semiconductor and computer technology....
 and the CMOS
CMOS

Complementary metal?oxide?semiconductor , is a major class of integrated circuits. CMOS technology is used in microprocessors, microcontrollers, Static Random Access Memory, and other digital logic circuits....
 4000 series
4000 series

The 4000 series is a family of industry standard integrated circuits which implement a variety of logic gate functions using CMOS technology. They were introduced by RCA as CD4000 COS/MOS in 1968, as a lower power and more versatile alternative to the 7400 series of transistor-transistor logic logic chips....
 by RCA
RCA

RCA Corporation, founded as Radio Corporation of America, was an electronics company in existence from 1919 to 1986. Today, the RCA is owned by the France conglomerate Thomson SA through RCA Trademark Management S.A., a company owned by Thomson....
, and their more recent descendants. Increasingly, these fixed-function logic gates are being replaced by programmable logic device
Programmable logic device

A programmable logic device or PLD is an electronics component used to build Reconfigurable Computing digital circuits. Unlike a logic gate, which has a fixed function, a PLD has an undefined function at the time of manufacture....
s, which allow designers to pack a large number of mixed logic gates into a single integrated circuit
Integrated circuit

In electronics, an integrated circuit is a miniaturized electronic circuit that has been manufactured in the surface of a thin Wafer of semiconductor material....
. The field-programmable nature of programmable logic device
Programmable logic device

A programmable logic device or PLD is an electronics component used to build Reconfigurable Computing digital circuits. Unlike a logic gate, which has a fixed function, a PLD has an undefined function at the time of manufacture....
s such as FPGA
Field-programmable gate array

A field-programmable gate array is a semiconductor device that can be configured by the customer or designer after manufacturing—hence the name "field-programmable"....
s has removed the 'hard' property of hardware; it is now possible to change the logic design of a hardware system by reprogramming some of its components, thus allowing the features or function of a hardware implementation of a logic system to be changed.

Electronic logic gates differ significantly from their relay-and-switch equivalents. They are much faster, consume much less power, and are much smaller (all by a factor of a million or more in most cases). Also, there is a fundamental structural difference. The switch circuit creates a continuous metallic path for current to flow (in either direction) between its input and its output. The semiconductor logic gate, on the other hand, acts as a high-gain
Gain

In electronics, gain is a measure of the ability of a electrical network to increase the Power or amplitude of a Signal . It is usually defined as the mean ratio of the Signalling of a system to the Signalling of the same system....
 voltage
Voltage

Electrical tension is the potential difference between two points of an electrical or electronic circuit, expressed in volts. It is the measurement of the potential for an electric field to cause an electric current in an electrical conductor....
 amplifier
Electronic amplifier

An electronic amplifier is a device for increasing the Power and/or amplitude of a Signal . It does this by taking energy from a power supply and controlling the output to match the input signal shape but with a larger amplitude....
, which sinks a tiny current at its input and produces a low-impedance voltage at its output. It is not possible for current to flow between the output and the input of a semiconductor logic gate.

Another important advantage of standardised integrated circuit
Integrated circuit

In electronics, an integrated circuit is a miniaturized electronic circuit that has been manufactured in the surface of a thin Wafer of semiconductor material....
 logic families, such as the 7400 and 4000 families, is that they are cascadable. This means that the output of one gate can be wired to the inputs of one or several other gates, and so on. Systems of arbitrary complexity can be built without great concern of the designer for the internal workings of the gates, provided the limitations of each integrated circuit are considered.

The output of one gate can only drive a finite number of inputs to other gates, a number called the 'fanout
Fanout

Fan-out is a measure of the ability of a logic gate output, implemented Electronics, to drive a number of inputs of other logic gates of the same type....
 limit'. Also, there is always a delay, called the 'propagation delay
Propagation delay

NetworkingPropagation delay is defined as the amount of time it takes for a certain number of bytes to be transferred over a medium. Propagation delay is the distance between the two routers divided by the propagation speed....
', from a change in input of a gate to the corresponding change in its output. When gates are cascaded, the total propagation delay is approximately the sum of the individual delays, an effect which can become a problem in high-speed circuits. Additional delay can be caused when a large number of inputs are connected to an output, due to the distributed capacitance
Capacitance

In electromagnetism and electronics, capacitance is the ability of a body to hold an electrical charge.Capacitance is also a measure of the amount of electric charge stored for a given electric potential....
 of all the inputs and wiring and the finite amount of current that each output can provide.

Logic gates


NAND
Sheffer stroke

The Sheffer stroke, written "|" or "?", in the subject matter of boolean functions or propositional calculus, denotes a logical operation that is equivalent to the logical negation of the logical conjunction operation, expressed in ordinary language as "not both"....
 and NOR
NOR gate

The NOR gate is a digital logic gate that implements logical NOR - it behaves according to the truth table to the right. A HIGH output results if both the inputs to the gate are LOW ....
 logic gates are the two pillars of logic, in that all other types of Boolean logic gates (i.e., AND
AND gate

The AND gate is a digital logic gate that implements logical conjunction - it behaves according to the truth table to the right. A HIGH output results only if both the inputs to the AND gate are HIGH ....
, OR
OR gate

The OR gate is a digital logic gate that implements logical disjunction - it behaves according to the truth table to the right. A HIGH output results if one or both the inputs to the gate are HIGH ....
, NOT, XOR
XOR gate

The XOR gate is a digital logic gate that implements exclusive disjunction - it behaves according to the truth table above. A HIGH output results if one, and only one, of the inputs to the gate is HIGH ....
, XNOR
XNOR gate

The XNOR gate is a digital logic gate whose function is the inverse of the exclusive OR gate. The two-input version implements logical equality, behaving according to the truth table to the right....
) can be created from a suitable network of just NAND or just NOR gate(s). They can be built from relays or transistors, or any other technology that can create an inverter and a two-input AND or OR gate. Hence the NAND and NOR gates are called the universal gates.

For an input of 2 variables, there are 16 possible boolean algebraic functions. These 16 functions are enumerated below, together with their outputs for each combination of inputs variables.

The four functions denoted by arrows are the logical implication functions. These functions are generally less common, and are usually not implemented directly as logic gates, but rather built out of gates like AND and OR.

Symbols

There are two sets of symbols in common use, both now defined by ANSI
American National Standards Institute

The American National Standards Institute or ANSI is a private non-profit organization that oversees the development of voluntary consensus standards for products, services, processes, systems, and personnel in the United States....
/IEEE
Institute of Electrical and Electronics Engineers

The Institute of Electrical and Electronics Engineers or IEEE is an international non-profit, professional body for the advancement of technology related to electricity....
 Std 91-1984 and its supplement ANSI/IEEE Std 91a-1991. 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 IEC
International Electrotechnical Commission

The International Electrotechnical Commission is a Non-profit organization, non-governmental international standards organization that prepares and publishes International Standards for all electrical, electronic and related technologies ? collectively known as "electrotechnology"....
 60617-12, 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 EN
European Committee for Standardization

The European Committee for Standardization or Comit? Europ?en de Normalisation , is a private non-profit organisation whose mission is to foster the European economy in global trading, the welfare of European citizens and the environment by providing an efficient infrastructure to interested parties for the development, maintenance and...
 60617-12:1999 in Europe and BS EN 60617-12:1999 in the United Kingdom.

The goal of IEEE Std 91-1984 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 4-bit 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 distinctive-shape 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 array
Gate array

A gate array or uncommitted logic array is an approach to the design and manufacture of application-specific integrated circuits . A gate array circuit is a prefabricated silicon chip circuit with no particular function in which transistors, standard NAND or NOR logic gates, and other active devices are placed at regular predefined pos...
s. Today custom ICs and the field-programmable gate array
Field-programmable gate array

A field-programmable gate array is a semiconductor device that can be configured by the customer or designer after manufacturing—hence the name "field-programmable"....
 are typically designed with Hardware Description Languages
Hardware description language

In electronics, a hardware description language or HDL is any language from a class of computer languages and/or programming languages for formal description of digital logic and electronic circuits....
 (HDL) such as Verilog
Verilog

In the semiconductor and electronic design industry, Verilog is a hardware description language used to model Electronics#Electronic systems. Verilog HDL, not to be confused with VHDL, is most commonly used in the design, verification, and implementation of Digital circuit logic chips at the Register transfer level level of Abstraction...
 or VHDL. The need for complex logic symbols has diminished and distinctive shape symbols are still the predominate style.

Type Distinctive shape Rectangular shape Boolean algebra between A & B Truth table
AND
AND gate

The AND gate is a digital logic gate that implements logical conjunction - it behaves according to the truth table to the right. A HIGH output results only if both the inputs to the AND gate are HIGH ....
INPUT OUTPUT
A B A AND B
0 0 0
0 1 0
1 0 0
1 1 1
OR
OR gate

The OR gate is a digital logic gate that implements logical disjunction - it behaves according to the truth table to the right. A HIGH output results if one or both the inputs to the gate are HIGH ....
INPUT OUTPUT
A B A OR B
0 0 0
0 1 1
1 0 1
1 1 1
NOT
INPUT OUTPUT
A NOT A
0 1
1 0
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 (active-low) input or output.
NAND
Sheffer stroke

The Sheffer stroke, written "|" or "?", in the subject matter of boolean functions or propositional calculus, denotes a logical operation that is equivalent to the logical negation of the logical conjunction operation, expressed in ordinary language as "not both"....
INPUT OUTPUT
A B A NAND B
0 0 1
0 1 1
1 0 1
1 1 0
NOR
NOR gate

The NOR gate is a digital logic gate that implements logical NOR - it behaves according to the truth table to the right. A HIGH output results if both the inputs to the gate are LOW ....
INPUT OUTPUT
A B A NOR B
0 0 1
0 1 0
1 0 0
1 1 0
 
XOR
XOR gate

The XOR gate is a digital logic gate that implements exclusive disjunction - it behaves according to the truth table above. A HIGH output results if one, and only one, of the inputs to the gate is HIGH ....
INPUT OUTPUT
A B A XOR B
0 0 0
0 1 1
1 0 1
1 1 0
XNOR
XNOR gate

The XNOR gate is a digital logic gate whose function is the inverse of the exclusive OR gate. The two-input version implements logical equality, behaving according to the truth table to the right....
INPUT OUTPUT
A B A XNOR B
0 0 1
0 1 0
1 0 0
1 1 1


In practice, the cheapest gate to manufacture is usually the NAND gate. Additionally, Charles Peirce
Charles Peirce

Charles Sanders Peirce was an American logician, mathematics, Philosophy, and science, born in Cambridge, Massachusetts. Peirce was educated as a chemist and employed as a scientist for 30 years....
 showed that NAND gates alone (as well as NOR gates alone) can be used to reproduce the functions of all the other logic gates.

7400
Two more gates are the exclusive-OR or XOR function and its inverse, exclusive-NOR or XNOR. The two input Exclusive-OR 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 combinations of simpler logic gates.

De Morgan equivalent symbols


By use of De Morgan's theorem
De Morgan's laws

In formal logic, De Morgan's laws are rules relating the logical operators 'and' and 'or' in terms of each other via logical negation.History...
, an AND gate can be turned into an OR gate by inverting the sense of the logic at its inputs and outputs. This leads to a separate ends can be replaced by a simple bubble-less connection and a suitable change of gate. If the NAND is drawn as OR with input bubbles, and a NOR as AND with input bubbles, this gate substitution occurs automatically in the diagram (effectively, bubbles "cancel"). This is commonly seen in real logic diagrams - thus the reader must not get into the habit of associating the shapes exclusively as OR or AND shapes, but also take into account the bubbles at both inputs and outputs in order to determine the "true" logic function indicated.

Storage of bits


Related to the concept of logic gates (and also built from them) is the idea of storing a bit of information. None of the gates discussed up to here can store a value by itself: when the inputs change, the outputs immediately react. It is possible to make a storage element either through a capacitor
Capacitor

A capacitor or condenser is a Passive component electronic component consisting of a pair of electrical conductor separated by a dielectric....
 (which stores charge due to its physical properties) or by feedback. Connecting the output of a gate to the input causes it to be put through the logic again, and choosing the feedback correctly allows it to be preserved or modified through the use of other inputs. A set of gates arranged in this fashion is known as a "latch", and more complicated designs that utilize clock signal
Clock signal

In electronics and especially Synchronous logic digital circuits, a clock signal is a Signalling used to coordinate the actions of two or more Electronic circuit....
s and change only on the rising edge are called edge-triggered "flip-flop
Flip-flop (electronics)

In digital circuits, a flip-flop is a term referring to an electronic circuit that has two stable states and thereby is capable of serving as one bit of computer storage....
s". The combination of multiple flip-flops in parallel, to store a multiple-bit value, is known as a register. When using any of these gate setups the overall system has memory; it is then called a sequential logic
Sequential logic

In digital circuit theory, sequential logic is a type of logic circuit whose output depends not only on the present input but also on the history of the input....
 system since its output can be influenced by its previous state(s).

These registers or capacitor-based circuits are known as computer memory
Computer storage

Computer data storage, often called storage or memory, refers to computer components, devices, and recording medium that retain digital data used for computing for some interval of time....
. They vary in performance, based on factors of speed, complexity, and reliability of storage, and many different types of designs are used based on the application.

Three-state logic gates


Three-state, or 3-state, logic gates have three states of the output: high (H), low (L) and high-impedance (Z). The high-impedance state plays no role in the logic, which remains strictly binary. These devices are used on bus
Electrical bus

An electrical bus is a physical electrical interface where many devices share the same electric connection. This allows signals to be transferred between devices ....
es to allow multiple chips to send data. A group of three-states driving a line with a suitable control circuit is basically equivalent to a multiplexer
Multiplexer

In electronics, a multiplexer or mux is a device that performs multiplexing; it selects one of many analog or digital input signals and outputs that into a single line....
, which may be physically distributed over separate devices or plug-in cards.

In electronics, a high output would mean the output is sourcing current from the positive power terminal (positive voltage). A low output would mean the output is sinking current to the negative power terminal (zero voltage). High impedance would mean that the output is effectively disconnected from the circuit.

'Tri-state', a widely-used synonym of 'three-state', is a trademark of the National Semiconductor Corporation
National Semiconductor

National Semiconductor is a semiconductor manufacturer, specializing in analog devices and subsystems,headquartered in Santa Clara, California, California, United States....
.

Miscellaneous

Logic circuits include such devices as multiplexer
Multiplexer

In electronics, a multiplexer or mux is a device that performs multiplexing; it selects one of many analog or digital input signals and outputs that into a single line....
s, registers
Processor register

In computer architecture, a processor register is a small amount of Computer storage available on the CPU whose contents can be accessed more quickly than storage available elsewhere....
, arithmetic logic unit
Arithmetic logic unit

In computing, an arithmetic logic unit is a digital circuit that performs arithmetic and logicaloperations. The ALU is a fundamental building block of the central processing unit of a computer, and even the simplest microprocessors contain one for purposes such as maintaining timers....
s (ALUs), and computer memory
Computer storage

Computer data storage, often called storage or memory, refers to computer components, devices, and recording medium that retain digital data used for computing for some interval of time....
, all the way up through complete microprocessor
Microprocessor

A microprocessor incorporates most or all of the functions of a central processing unit on a single integrated circuit . The first microprocessors emerged in the early 1970s and were used for electronic calculators, using Binary-coded decimal arithmetic on 4-bit Word ....
s which can contain more than a 100 million gates. In practice, the gates are made from field-effect transistors (FETs), particularly MOSFET
MOSFET

The metal?oxide?semiconductor field-effect transistor is a device used to amplify or switch electronic signals. The basic principle of the device was first proposed by Julius Edgar Lilienfeld in 1925....
s.

Compound logic gates AND-OR-Invert
AND-OR-Invert

AND-OR-Invert logic and AOI gates are two-level compound logic functions constructed from the combination of one or more AND gates followed by a NOR gate....
 (AOI) and OR-AND-Invert (OAI) are often employed in circuit design because their construction using MOSFET's is simpler and more efficient than the sum of the individual gates.

In reversible logic
Reversible computing

Reversible computing, sometimes called non-destructive computing includes any computational process that is reversible, i.e., time-invertible function, meaning that a time-reversed version of the process could exist within the same general dynamical system as the original process....
, Toffoli gate
Toffoli gate

In computer science, the Toffoli gate, invented by Tommaso Toffoli, is a universal Reversible computing logic gate, which means that any reversible circuit can be constructed from Toffoli gates....
s are used.

History and development


The earliest logic gates were made mechanically. Charles Babbage
Charles Babbage

Charles Babbage, Royal Society was an England mathematician, philosopher, inventor and mechanical engineer who originated the concept of a programmable computer....
, around 1837, devised the Analytical Engine
Analytical engine

The analytical engine, an important step in the history of computers, was the design of a mechanical general-purpose computer by the British mathematician Charles Babbage....
. His logic gates relied on mechanical gearing to perform operations. Electromagnetic relays were later used for logic gates. In 1891, Almon Strowger
Almon Strowger

Almon Brown Strowger gave his name to the electromechanical telephone exchange technology that his invention and patent inspired....
 patented a device containing a logic gate switch circuit . Strowger's patent was not in widespread use until the 1920s. Starting in 1898, Nikola Tesla
Nikola Tesla

Nikola Tesla was an inventor and a mechanical engineer and electrical engineer. Tesla was born in the village of Smiljan near the town of Gospic, in Croatia ....
 filed for patent
Patent

A patent is a set of exclusive rights granted by a state to an inventor or his assignee for a term of patent in exchange for a disclosure of an invention....
s of devices containing logic gate circuits (see List of Tesla patents
List of Tesla patents

Below is a list of Tesla patents. Dr. Nikola Tesla was an inventor who obtained around 300 patents worldwide for his inventions. Some of Dr. Tesla's patents are not accounted for, and various sources have discovered some that have lain hidden in patent archives....
). Eventually, vacuum tube
Vacuum tube

In electronics, a vacuum tube, electron tube , thermionic valve, or just valve is a device used to amplifier, switch, otherwise modify, or create an Electricity signal by controlling the movement of electrons in a low-pressure space....
s replaced relays for logic operations. Lee De Forest
Lee De Forest

Lee De Forest was an United States inventor with over 180 patents to his credit. De Forest invented the Audion tube, a vacuum tube that takes relatively weak electrical signals and amplifies them....
's modification, in 1907, of the Fleming valve
Vacuum tube

In electronics, a vacuum tube, electron tube , thermionic valve, or just valve is a device used to amplifier, switch, otherwise modify, or create an Electricity signal by controlling the movement of electrons in a low-pressure space....
 can be used as AND logic gate. Ludwig Wittgenstein
Ludwig Wittgenstein

Ludwig Josef Johann Wittgenstein was an Austrian-United Kingdom philosopher who worked primarily in logic, the philosophy of mathematics, the philosophy of mind, and the philosophy of language....
 introduced a version of the 16-row truth table
Truth table

A truth table is a mathematical table used in logic?specifically in connection with Boolean algebra , boolean functions, and propositional calculus?to compute the functional values of logical expression s on each of their functional arguments, that is, on each combination of values taken by their logical variables....
, which is shown above, as proposition 5.101 of Tractatus Logico-Philosophicus
Tractatus Logico-Philosophicus

Tractatus Logico-Philosophicus is the only book-length philosophical work published by the Austrian philosopher Ludwig Wittgenstein during his lifetime....
 (1921). Claude E. Shannon introduced the use of Boolean algebra in the analysis and design of switching circuits in 1937. Walther Bothe
Walther Bothe

Walther Wilhelm Georg Bothe was a Germany nuclear physicist.In 1913, he joined the newly created Laboratory for Radioactivity at the Reich Physical and Technical Institute , where he remained until 1930, the latter few years as the director of the laboratory....
, inventor of the coincidence circuit
Coincidence circuit

In physics, a coincidence circuit is an electronic device with one output and two inputs. The output is activated only when signals are received at the same time at both inputs....
, got part of the 1954 Nobel Prize
Nobel Prize

The Nobel Prize , established in the 1895 will of Swedish chemist Alfred Nobel; it was first awarded in Nobel Prize in Physics, Nobel Prize in Chemistry, Nobel Prize in Physiology or Medicine, Nobel Prize in Literature, and Nobel Peace Prize in 1901....
 in physics, for the first modern electronic AND gate in 1924. Active research is taking place in molecular logic gate
Molecular logic gate

A molecular logic gate is a molecule that performs a logical operation on one or more logic inputs and produces a single logic output. Much academic research is dedicated to the development of these systems and several prototypes now exist....
s.

Implementations


As of 2008, most logic gates are made of CMOS
CMOS

Complementary metal?oxide?semiconductor , is a major class of integrated circuits. CMOS technology is used in microprocessors, microcontrollers, Static Random Access Memory, and other digital logic circuits....
 transistors. Often millions of logic gates are packaged in a single integrated circuit
Integrated circuit

In electronics, an integrated circuit is a miniaturized electronic circuit that has been manufactured in the surface of a thin Wafer of semiconductor material....
.

The most common implementations of logic gates are based on electronics
Electronics

Electronics refers to the flow of charge through nonmetal electrical conductor , whereas electrical refers to the flow of charge through metal electrical conductor....
 using resistors, transistors and diodes. There are several logic gate design paradigms based on these components. Each paradigm leads to a logic family
Logic family

In computer engineering, a logic family may refer to one of two related concepts. A logic family of monolithic digital integrated circuit devices is a group of electronic logic gates constructed using one of several different designs, usually with input/output standards and power supply characteristics within a family....
 with different advantages (efficiency
Efficiency

Efficiency may refer to:...
, speed
Speed

Speed is the rate of Motion , or equivalently the rate of change of distance.Speed is a Scalar quantity with dimensions length/time; the equivalent Vector quantity to speed is velocity....
, cost
Cost

In economics, business, retail, and accounting, a cost is the value of money that has been used up to produce something, and hence is not available for use anymore....
, size
Size

The word size may refer to how big something is. In particular:* Measurement* Dimensions: length, width, height, diameter, perimeter, area, volume...
, reliability
Reliability engineering

Reliability engineering is an engineering field, that deals with the study of reliability: the ability of a system or component to perform its required functions under stated conditions for a specified period of time....
...): RDL
Diode logic

Diode logic or Diode-resistor logic, is a circuit style that uses diodes to construct Boolean logic logic gates for electrical circuit. Only non-inverter functions may be implemented, so it is not a complete logic family....
 (resistor-diode logic), RTL
Resistor-transistor logic

File:RTL NPN NOR Gate.svgFile:RTL 3-Input NOR Gate.svgResistor?transistor logic is a class of digital circuits built using resistors as the input network and bipolar junction transistors as switching devices....
 (resistor-transistor logic), DTL
Diode-transistor logic

Diode?Transistor Logic is a class of digital circuits built from bipolar junction transistors , diodes and resistors; it is the direct ancestor of transistor?transistor logic....
 (diode-transistor logic), TTL
Transistor-transistor logic

File:68k ttl.jpgTransistor?transistor logic is a class of digital circuits built from bipolar junction transistors and resistors. It is called transistor?transistor logic because both the logic gating function and the amplifying function are performed by transistors ....
 (transistor-transistor logic) and CMOS
CMOS

Complementary metal?oxide?semiconductor , is a major class of integrated circuits. CMOS technology is used in microprocessors, microcontrollers, Static Random Access Memory, and other digital logic circuits....
 (complementary metal oxide semiconductor). It is also possible to make logic gates out of relays, a design used in certain scenarios for increased robustness.

It is also possible to create mechanical logic gates, including on a molecular scale. Logic gates have been made out of DNA
DNA

Deoxyribonucleic acid is a nucleic acid that contains the genetics instructions used in the development and functioning of all known living organisms and some viruses....
 (see DNA nanotechnology
DNA nanotechnology

DNA nanotechnology is a subfield of nanotechnology which seeks to use the unique molecular recognition properties of DNA and other nucleic acids to create novel, controllable structures out of DNA....
) and used to create a computer called MAYA (see MAYA II).

Additionally, logic gates can be made from quantum mechanical
Quantum mechanics

Quantum mechanics is a set of principles underlying the most fundamental known description of all physical systems at the microscopic scale . Notable amongst these principles are both a dual wave-like and particle-like behavior of matter and radiation, and prediction of probabilities in situations where classical physics predicts certaintie...
 effects (though quantum computing usually diverges from boolean design), and non-linear optical effects.

See also

  • And-inverter graph
    And-inverter graph

    An and-inverter graph is a directed, acyclic graph that represents a structural implementation of the logical functionality of a digital circuit....
  • Boolean algebra topics
  • Boolean function
    Boolean function

    In mathematics, a Boolean function is a function of the form f : Bk ? B, where B =  is a Boolean domain and k is a nonnegative integer called the arity of the function....
  • Digital circuit
    Digital circuit

    Digital electronics are electronics systems that use digital signals. Digital electronics are representations of Boolean algebra and are used in computers, mobile phones, and other consumer products....
  • Espresso heuristic logic minimizer
  • Fanout
    Fanout

    Fan-out is a measure of the ability of a logic gate output, implemented Electronics, to drive a number of inputs of other logic gates of the same type....
  • Flip-flop (electronics)
    Flip-flop (electronics)

    In digital circuits, a flip-flop is a term referring to an electronic circuit that has two stable states and thereby is capable of serving as one bit of computer storage....
  • Karnaugh map
    Karnaugh map

    The Karnaugh map, also known as a Veitch diagram , is a tool to facilitate the simplification of Boolean algebra integrated circuit expressions....
  • Logic family
    Logic family

    In computer engineering, a logic family may refer to one of two related concepts. A logic family of monolithic digital integrated circuit devices is a group of electronic logic gates constructed using one of several different designs, usually with input/output standards and power supply characteristics within a family....
  • Logical graph
    Logical graph

    A logical graph is a special type of diagramatic structure in any one of several systems of graphical syntax that Charles Sanders Peirce developed for logic....
  • NMOS logic
    NMOS logic

    nMOS logic uses n-type metal-oxide-semiconductor field effect transistors to implement logic gates and other digital circuits. nMOS transistors have three modes of operation: cut-off, triode, and saturation ....
  • Propositional calculus
    Propositional calculus

    In logic and mathematics, a propositional calculus or logic is a formal system in which formulae representing propositional formulas can be formed by combining atomic formula propositions using logical connectives, and a system of formal proof rules allows certain formul? to be established as "theorem"....
  • Race hazard
  • Reversible computing
    Reversible computing

    Reversible computing, sometimes called non-destructive computing includes any computational process that is reversible, i.e., time-invertible function, meaning that a time-reversed version of the process could exist within the same general dynamical system as the original process....
  • Truth table
    Truth table

    A truth table is a mathematical table used in logic?specifically in connection with Boolean algebra , boolean functions, and propositional calculus?to compute the functional values of logical expression s on each of their functional arguments, that is, on each combination of values taken by their logical variables....


Further Reading

  • Awschalom, D., D. Loss, and N. Samarth, Semiconductor Spintronics and Quantum Computation (2002), Springer-Verlag, Berlin, Germany.
  • Bostock, Geoff, Programmable Logic Devices. Technology and Applications (1988), McGraw-Hill, New York, NY.
  • Brown, Stephen D. et al., Field-Programmable Gate Arrays (1992), Kluwer Academic Publishers, Boston, MA.


External links