logical circuits

27
Logical Circuits Philip Gebhardt 3/15/2011

Upload: aelwen

Post on 03-Feb-2016

87 views

Category:

Documents


0 download

DESCRIPTION

Logical Circuits. Philip Gebhardt 3/15/2011. Logic Circuits. Negative, Positive, and Complimentary circuits Logic Gates Programmable Logic Devices. Logic Circuits are built from Transistors. Transistors act as the switches in circuits - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Logical Circuits

Logical Circuits

Philip Gebhardt3/15/2011

Page 2: Logical Circuits

Logic Circuits

•Negative, Positive, and Complimentary circuits• Logic Gates

•Programmable Logic Devices

Page 3: Logical Circuits

Logic Circuits are built from Transistors

• Transistors act as the switches in circuits• Controlled by a logical signal from another logic circuit

• The most popular transistor used today• The metal oxide semiconductor field-effect transistor

(MOSFET)• Two different types: n-channel (NMOS) and p-channel

(PMOS)

Page 4: Logical Circuits

Negative (NMOS)

Positive (PMOS)

Vx

Vx

X = LOW X = HIGH

X = HIGH X = LOW

Page 5: Logical Circuits

NMOS Realization of a NOT gate

Vx

VDD

Vf

X Vf

on off

off on

VDD

Vf = 0

VDD

Vf = VDD

on off

Page 6: Logical Circuits

NMOS Realization of the NAND gate

Vy

VDD

Vf

Vx

Vx Vy Vf

0 0 1

0 1 1

1 0 1

1 1 0

Page 7: Logical Circuits

NMOS Realization of the AND gate

Vy

VDD

Vx

VDD

Vf

Vx Vy Vf’ Vf

0 0 1 0

0 1 1 0

1 0 1 0

1 1 0 1

Vf ’

Page 8: Logical Circuits

NMOS Realization of the AND gate

Vy

VDD

Vx

VDD

Vf

NOT Gate

NAND Gate

Page 9: Logical Circuits

NMOS Realization of the NOR gate

Vx Vy

VDD

Vf

Page 10: Logical Circuits

NMOS Realization of the OR gate

Vx Vy

VDD VDD

Vf

Page 11: Logical Circuits

Complementary MOS (CMOS)

Vy

Vx

Vf

VDDVDD

Vf

Vy

Vx

CMOS NAND gate

CMOS NOR gate

Page 12: Logical Circuits

Logic Devices

• 7400 Series Standard Chips• Programmable Logic Devices

• Programmable Logic Array (PLA)• Programmable Array Logic (PAL)• Complex Programmable Logic Devices (CPLDs)

Vy

VDD

Vf

Vx

Page 13: Logical Circuits

Logic Devices

• 7400 Series Standard Chips and all other Logic Devices measured in NAND equivalency gates

Page 14: Logical Circuits

Logic Devices

• 7400 Series Standard Chips and all other Logic Devices measured in NAND equivalency gates

• Ex: The macrocells in PALs are often about 20 equivalent NAND gates

Page 15: Logical Circuits

7400 Series Standard Chips

• External pins used as input/ouput• Two pins used for VDD and GND leads• Multiple chips with different logical gates can

be connected to realize logical functions

Page 16: Logical Circuits

F = X1X2 + X2’X3

X1

X2

X3

VDD

F

Page 17: Logical Circuits

• Not very efficient for operations with large logical capacity

• Mostly used today as buffers from other logical circuits

Page 18: Logical Circuits

Programmable Logic Devices

• PLDs are general-purpose computer chips designed to implement logical circuits.

• Devices with a lot of circuitry and logical gates• Unlike 7400 series chips, has Non-fixed structure

• Can be considered a black box with wide range of logical combinations

• Programmable Logic Array (PLA)• Programmable Array Logic (PAL)

Page 19: Logical Circuits

PLD as a Black Box

.

.

.

.

.

.

Logic GatesAnd SwitchesInput Variables Output Values

(function values)

Page 20: Logical Circuits

Programmable Logic Arrays (PLAs)

• PLAs can be broken down into two planes of wires which pass logic gates

• AND plane: logic variables (and their compliments) pass through the AND gates• OR plane: the resultants from the AND gates then pass

through the OR gates

• Switches programmed by the user determine which variable pass through which gates

Page 21: Logical Circuits

Generic PLA

.

.

.

Input(buffers & inverters)

.

.

.

.

.

.

AND plane

OR planeXn

fm

Page 22: Logical Circuits

PLA Implementation

X1, X’1, … Xn, X’n

f1 … fm

Page 23: Logical Circuits

Programmable Array Logic

• Unlike PLAs, PALs are not fixed on both logical planes

• Generally only the AND plane fixed

• Less flexibility but more cost efficient and better performance

• Uses extra circuitry after OR gates for more versatility• Macrocells• Flip-flops, MUXs, more buffers

Page 24: Logical Circuits

PAL Structure

Programmable switches determine AND gate results…

Fixed OR gates connect to macrocells

Page 25: Logical Circuits

Example of macrocell

D Q

CLK

MUX2:1

Back to AND plane

fi

PAL block

Page 26: Logical Circuits

Benefits Limitations of PLAs and PALs

• PLAs• Efficient for the area needed for implementation• Too many switches decreases performance and

increases costs for manufacturing

• PALs• Less expensive and easier to manufacture compared to

PLAs• Macrocells allow for implementation of logical circuits

with multiple levels or phases• Less flexibility requires extra circuitry

Page 27: Logical Circuits