logic gates

4
Logic Gates 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 logical inputs, and produces a single logical output. Logic circuits include such devices as multiplexers, registers, arithmetic logic units (ALUs), and computer memory, all the way up through complete microprocessors, which may contain more than 100 million gates. In practice, the gates are made from field- effect transistors (FETs), particularly MOSFETs (metal–oxide– semiconductor field-effect transistors). Compound logic gates AND-OR-Invert (AOI) and OR-AND-Invert (OAI) are often employed in circuit design because their construction using MOSFETs is simpler and more efficient than the sum of the individual gates. NAND and NOR Gates are called Universal Gates because all the other gates can be created by using these gates Note: Please refer class notes for design all gates using NAND and NOR. Logic Gates Type Distinctive shape Boolean algebra IC Number Truth table AND or & 7408 INPUT OUTPUT A B A AND B 0 0 0 0 1 0 1 0 0 1 1 1 OR 7432 INPUT OUTPUT A B A OR B 0 0 0 0 1 1 1 0 1 1 1 1

Upload: seekay-alais-karuppaiah-c

Post on 19-Jul-2016

13 views

Category:

Documents


0 download

DESCRIPTION

Logic Gates

TRANSCRIPT

Logic Gates

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 logical inputs, and produces a single logical output.

Logic circuits include such devices as multiplexers, registers, arithmetic logic units (ALUs), and computer memory, all the way up through complete microprocessors, which may contain more than 100 million gates. In practice, the gates are made from field-effect transistors (FETs), particularly MOSFETs (metal–oxide–semiconductor field-effect transistors).

Compound logic gates AND-OR-Invert (AOI) and OR-AND-Invert (OAI) are often employed in circuit design because their construction using MOSFETs is simpler and more efficient than the sum of the individual gates.

NAND and NOR Gates are called Universal Gates because all the other gates can be created by using these gates

Note: Please refer class notes for design all gates using NAND and NOR.

Logic Gates

Type Distinctive shape Boolean algebra IC Number Truth tableAND or

& 7408 INPUT OUTPUT

A B A AND B0 0 00 1 01 0 01 1 1

OR 7432 INPUT OUTPUTA B A OR B0 0 00 1 11 0 11 1 1

NOT or ~ 7404 INPUT OUTPUTA NOT A0 11 0

NANDor

7400 INPUT OUTPUTA B A NAND B0 0 10 1 11 0 11 1 0

NORor

7402 INPUT OUTPUTA B A NOR B0 0 10 1 01 0 01 1 0

XOR 7486 INPUT OUTPUTA B A XOR B0 0 00 1 11 0 11 1 0

XNOR or

74266 INPUT OUTPUTA B A XNOR B0 0 10 1 01 0 01 1 1

Arithmetic Circuits

The half adder adds two single binary digits A and B. It has two outputs, sum (S) and carry (C). The carry signal represents an overflow into the next digit of a multi-digit addition.

A full adder adds binary numbers and accounts for values carried in as well as out. A one-bit full adder adds three one-bit numbers, often written as A, B, and Cin; A and B are the operands, and Cin is a bit carried in from the next less significant stage. The full-adder is usually a component in a cascade of adders, which add 8, 16, 32, etc. bit binary numbers.

Inputs

Outputs

A B C S0 0 0 01 0 0 10 1 0 11 1 1 0

and

Inputs OutputsA B Cin Cout S0 0 0 0 01 0 0 0 10 1 0 0 11 1 0 1 00 0 1 0 11 0 1 1 00 1 1 1 01 1 1 1 1

Ripple-carry adder

4-bit adder with logic gates shown

It is possible to create a logical circuit using multiple full adders to add N-bit numbers. Each full adder inputs a Cin, which is the Cout of the previous adder. This kind of adder is called a ripple-carry adder, since each carry bit "ripples" to the next full adder. Note that the first (and only the first) full adder may be replaced by a half adder (under the assumption that Cin = 0).

To reduce the computation time, engineers devised faster ways to add two binary numbers by using carry-look ahead adders.