BMET Wiki
Register
Advertisement
Logic gate

Logic gates

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 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 International Electrotechnical Commission (IEC) 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 European Committee for Standardization 60617-12:1999 in Europe and British Standard 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 arrays. Today custom ICs and the field-programmable gate array are typically designed with Hardware description language|Hardware 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
AND
100px-AND ANSI

AND Symbol

INPUT OUTPUT
A B A AND B
0 0 0
0 1 0
1 0 0
1 1 1
OR
100px-OR ANSI

OR Symbol

INPUT OUTPUT
A B A OR B
0 0 0
0 1 1
1 0 1
1 1 1
NOT
100px-NOT ANSI

NOT Symbol

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.[2]
NAND
100px-NAND ANSI

NAND Symbol

INPUT OUTPUT
A B A NAND B
0 0 1
0 1 1
1 0 1
1 1 0
NOR
100px-NOR ANSI

NOR Symbol

INPUT OUTPUT
A B A NOR B
0 0 1
0 1 0
1 0 0
1 1 0
XOR
100px-XOR ANSI

XOR Symbol

INPUT OUTPUT
A B A XOR B
0 0 0
0 1 1
1 0 1
1 1 0
XNOR
100px-XNOR ANSI

XNOR Symbol

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 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 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 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 opera­tions 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[]

  1. E. J. Mastascusa . "Gates." Bucknell University . 2008. http://www.facstaff.bucknell.edu/mastascu/eLessonsHTML/Logic/Logic4.html
  2. Winfield Hill and Paul Horowitz. The Art of Electronics. Cambridge University Press. 1989. isbn = 0521377099. [1]
  3. Prof. C. E. Efstathiou. "Digital Electronics: Gates, Decoders, Multiplexers." Accessdate 1/2/2016. http://www.chem.uoa.gr/applets/appletgates/appl_gates2.html

Links[]

Advertisement