590 likes | 814 Views
Chapter 3. How transistors operate and form simple switches CMOS logic gates PLA, PAL, FPGA Basic electrical characteristics of logic circuits. Transistor Switches. Logic Circuits are built with Transistors “A full treatment of transistor behavior is beyond the scope of this text” MOSFETs
E N D
Chapter 3 • How transistors operate and form simple switches • CMOS logic gates • PLA, PAL, FPGA • Basic electrical characteristics of logic circuits
Transistor Switches • Logic Circuits are built with Transistors • “A full treatment of transistor behavior is beyond the scope of this text” • MOSFETs • NMOS - nchannel • PMOS – pchannel
NMOS vs PMOS x = "high" x = "low" x = "low" x = "high" (a) A simple switch controlled by the input x (a) A switch with the opposite behavior Gate Gate Source Drain Drain Source V Substrate (Body) DD Substrate (Body) (b) PMOS transistor (b) NMOS transistor V V G G V V V V S D S D (c) Simplified symbol for an NMOS transistor (c) Simplified symbol for a PMOS transistor
NMOS & PMOS in Logic Circuits V V = 0 V V D D D V G V = 0 V S Closed switch Open switch when V = V when V = 0 V G DD G (a) NMOS transistor V = V V V S DD DD DD V G V V V = V D D D DD Open switch Closed switch when V = V when V = 0 V G DD G (b) PMOS transistor
NMOS Inverter V DD R R + 5 V V V - f f V V x x (a) Circuit diagram (b) Simplified circuit diagram x f x f (c) Graphical symbols
NMOS NAND vs AND V V V DD DD DD V V f f V x 1 A x x f V 1 2 x 1 0 0 1 x x f V 1 2 x 0 1 1 2 0 0 0 1 0 1 V x 2 0 1 0 1 1 0 1 0 0 1 1 1 (a) Circuit (b) Truth table (b) Truth table (a) Circuit x x 1 1 x x 1 f f 1 f f x x x x 2 2 2 2 (c) Graphical symbols (c) Graphical symbols
NOR and OR What would an OR gate look like?
What’s Wrong With this Picture? V DD R V f V x When Vx is high there is a constant current through R
Structure of an NMOS Circuit V DD V f V x 1 V x 2
V DD T 1 V V x f T 2
Vf Vf = X1X2 = X1 + X2 Vf = X1X2 PUN = Vf PDN = Vf
Types of Integrated Circuits • Standard Logic • Programmable Logic • Custom Logic
7400 Series Standard Chips - random logic V DD 7404 7408 7432 x 1 x 2 x 3 = x1x2 + x2x3 f
Standard Logic • Seldom used – with exception of buffers • SSI • Earliest devices only a few logic gates/transistors • MSI • 10 to100 gates • LSI • Greater than MSI • VLSI
PLDs – Programmable Logic Devices } • PLA – Programmable Logic Array • PAL – Programmble Array Logic • CPLD – Complex PLD • FPGA – Field Programmable Gate Arrays • Custom Chips • ASIC – Application Specific Integrated Circuit • Gate Arrays • Memory SPLDs
PLA – Programmable Logic Array • Based on the idea that logic functions can be realized in SoP form • “Modest” size circuits • Inputs & Outputs of not more than 32
x x x 1 2 3 Programmable connections OR plane P 1 P 2 P 3 P 4 AND plane f f 1 2
x x x 1 2 3 Programmable connections OR plane P 1 P 2 P 3 P 4 f1 = x1x2 + x1x3 + x1x2x3 AND plane f2 = x1x2 + x1x2x3 + x1x2 f f 1 2
x x x 1 2 3 OR plane P 1 P 2 P 3 P 4 AND plane f f 1 2
PAL – Programmble Array Logic • PLA’s Programmable Fuses • Fabrication difficult • Fuses slow down circuit • PALs • Only AND plane is programmable • OR plane is fixed • “Modest” size circuits • Inputs & Outputs of not more than 32
x x x 1 2 3 P 1 f 1 P 2 P 3 f 2 P 4 AND plane
PAL Macrocell Select Enable f 1 Flip-flop D Q Clock To AND plane
CPLD – Complex PLD • Multiple Circuit blocks on a single chip • Each circuit block similar to PAL or PLA • Typical CPLDs • 16 Macro cells in each PAL like block • 5 to 20 inputs to each OR gate • 2 to more than 100 PAL like blocks
PAL-like PAL-like I/O block I/O block block block Interconnection wires PAL-like PAL-like I/O block I/O block block block Structure of a complex programmable logic device (CPLD).
Note how output pin can be used as an input pin but associated macrocell cannot be used – some CPLDs include additional wiring to get around this limitation A section of a CPLD
Equivalent Gates • Two input NAND gate used as measure of circuit size • SPLD, CPLD macrocell = 20 Equivalent Gates • PAL with 8 Macrocells can hold circuit of about 160 EG • CPLD with 500 macrocells can hold circuit of about 10,000 EG • Today’s logic circuits demand circuits greater than 10,000 EG
Memory as Logic Address • How Memory Works • Supply address • Get Data Data
Memory as Logic Address • Consider an 8 location memory chip with one binary bit at each location • How many bits to address a location? • How many bits at each location? Data
Memory as Logic Address A2 A1 A0 Data 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 0 1 1 1 0 Data f= A2A1A0 + A2A1A0 What would you name this?
FPGA – Field Programmable Gate Arrays • Quite different from SPLDs and CPLDs • FPGAs don’t have AND or OR planes • Logic blocks – most common are LUTs • I/O blocks • Interconnection wires • Greater than 1M EG
x x 2 1 0/1 0/1 0/1 0/1 f 0/1 0/1 0/1 0/1 x 3 A three-input LUT.
Select Out Flip-flop In 1 In D Q LUT 2 In 3 Clock Inclusion of a flip-flop in an FPGA logic block.
Custom Chips, Standard Cells, & Gate Arrays • Programmable switches • Size issue • Speed issue
Custom Chips • Complete flexibility in transistor placement and connection • Large design effort • Large cost • Large quantities
ASICsApplication Specific Integrated Circuits • Standard Cell Libraries • Configurable connections
Gate Arrays • Gates prefabricated • Connections added later
In-System Programmingvs? Out of System Programming • Compare Teensy++ to ATtiny261
Programming • PALs & PLAs usually programmed out of systems • CPLDs usually programmed via JTAG in-system • FPGAs programmed via JTAG in-system • PALs, PLAs, & CPLDs nonvolatile • FPGAs volatile
Practical Aspects • Transistor Operation • Static Operation - Voltage Levels • Dynamic Operation – Transition Times • Power Dissipation
I D Triode Saturation 0 V – V GS T V DS The current-voltage relationship in the NMOS transistor.
V V D D V G V = 0 V S Open switch when V = 0 V G
V V = 0 V D D V G V = 0 V S Closed switch when V = V G DD
Logic Values as Voltage Levels Logic Value 1 VOH High Noise Margin VOH – VIH VIH VIL Low Noise Margin VIL - VOL VOL Logic Value 0