Computer Organization and Design Transistors & Logic - II Montek Singh Wed, Oct 17, 2012 Lecture 11.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

ECE2030 Introduction to Computer Engineering Lecture 9: Combinational Logic, Mixed Logic Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering.
CS 151 Digital Systems Design Lecture 11 NAND and XOR Implementations.
EE 4271 VLSI Design, Fall 2011 CMOS Combinational Gate.
L08 – Transistors and Logic 1 Comp 411 – Fall /30/09 Transistors and Logic A B Comp 411 Box-o-Tricks F = A xor B 1) The digital contract 2) Encoding.
CS 140 Lecture 13 Combinational Standard Modules Professor CK Cheng CSE Dept. UC San Diego 1.
ENGIN112 L11: NAND and XOR Implementation September 26, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 11 NAND and XOR Implementations.
Lecture 14 Today we will Learn how to implement mathematical logical functions using logic gate circuitry, using Sum-of-products formulation NAND-NAND.
Lecture #24 Gates to circuits
Topics Combinational logic functions.
Faculty of Computer Science © 2006 CMPUT 229 Digital Logic From Switches to Memories.
10/25/2004EE 42 fall 2004 lecture 231 Lecture #23 Synthesis Next week: Converting gates into circuits.
Computer ArchitectureFall 2008 © August 20 th, Introduction to Computer Architecture Lecture 2 – Digital Logic Design.
W. G. Oldham EECS 40 Fall 2001 Lecture 2 Copyright Regents of University of California The CMOS Inverter: Current Flow during Switching V IN V OUT V DD.
ENGG 1203 Tutorial Combinational Logic (I) 1 Feb Learning Objectives
Modern VLSI Design 4e: Chapter 3 Copyright  2008 Wayne Wolf Topics n Combinational logic functions. n Static complementary logic gate structures.
Chapter 4 Gates and Circuits.
EE 5900 Advanced Algorithms for Robust VLSI CAD, Spring 2009
MOS Transistors The gate material of Metal Oxide Semiconductor Field Effect Transistors was original made of metal hence the name. Present day devices’
Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):
Module 3.  Binary logic consists of :  logic variables  designated by alphabet letters, e.g. A, B, C… x, y, z, etc.  have ONLY 2 possible values:
Introduction to Computing Systems from bits & gates to C & beyond Chapter 3 Digital Logic Structures Transistors Logic gates & Boolean logic Combinational.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 3 Digital Logic Structures Transistors Logic gates & Boolean logic Combinational.
Digital Logic. 4 Why is 32-bit or 64-bit significant in terms of speed, efficiency? 4 Difference between OR and XOR 4 What is a mux for? PLA 4 Two kinds.
FPGA-Based System Design: Chapter 2 Copyright  2003 Prentice Hall PTR Topics n Combinational logic functions. n Static complementary logic gate structures.
Digital Logic Structures MOS transistors logic gates functional units of a computer.
Digital Electronics Lecture 6 Combinational Logic Circuit Design.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
ECE2030 Introduction to Computer Engineering Lecture 4: CMOS Network Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia Tech.
Computer Organization and Design Transistors & Logic - II Montek Singh Wed, Oct 16, 2013 Lecture 10.
Computer Organization and Design Transistors and all that… a brief overview Montek Singh Oct 12, 2015 Lecture 9 1.
Lecture 09 NAND and XOR Implementations. Overview °Developing NAND circuits °Two-level implementations Convert from AND/OR to NAND (again!) °Multi-level.
Computer Organization and Design Transistors & Logic - II Montek Singh Oct {21,28}, 2015 Lecture 10.
ITEC 352 Lecture 3 Low level components(2). Low-level components Review Electricity Transistors Gates Really simple circuit.
1 Logic Gates and Circuits  Logic Gates Logic Gates  The Inverter The Inverter  The AND Gate The AND Gate  The OR Gate The OR Gate  The NAND Gate.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
Lecture 4 Introduction to Boolean Algebra. Binary Operators In the following descriptions, we will let A and B be Boolean variables and define a set of.
5 - Digital Logic with Boolean Algebra
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
Instructor : Po-Yu Kuo 教師:郭柏佑 Ch. 3 Digital Logic Structures EL 1009 計算機概論 ( 電子一 B) Introduction to Computer Science.
Solid-State Devices & Circuits
Module 7.  In Module 3 we have learned about NAND gate – it is a combination of AND operation followed by NOT operation  Symbol A. B = Y  Logic Gate.
Introduction to Computing Systems and Programming Digital Logic Structures.
CMOS Logic Gates. NMOS transistor acts as a switch 2 When gate voltage is 0 V No channel is formed current does not flow easily “open switch” When gate.
Chapter 3 Digital Logic Structures
CSE 140 Lecture 13 Combinational Standard Modules Professor CK Cheng CSE Dept. UC San Diego 1.
1 ECE2030 Introduction to Computer Engineering Lecture 4: CMOS Network Prof. Hsien-Hsin Sean Lee School of ECE Georgia Institute of Technology.
Computer Organization and Design Transistors & Logic - II Montek Singh Mon, Mar 14, 2011 Lecture 9.
Computer Organization and Design Transistors & Logic - I Montek Singh Wed, Oct 14, 2013 Lecture 9 1.
Digital electronics 4–1 Gates and Circuits SANJAYBHAI RAJGURU COLLEGE OF ENGG.
1 CS 352 Introduction to Logic Design Lecture 4 Ahmed Ezzat Multi-level Gate Circuits and Combinational Circuit Design Ch-7 + Ch-8.
Digital Logic. Boolean Algebra to Logic Gates Logic circuits are built from components called logic gates. The logic gates correspond to Boolean operations.
Computer Organization and Design Transistors and all that… a brief overview Montek Singh Mar 21, 2016 Lecture 9 1.
COMP541 Transistors and all that… a brief overview
Transistors and Logic - II
Logic Gates and Boolean Algebra
Lecture 6 Topics Combinational Logic Circuits
Logic Gates.
Computer Organization and Design Transistors & Logic - II
Montek Singh Oct 25, 2017 Lecture 9
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Schematics 201 Lecture Topic: Electrical Symbols
Logic Gates.
Chapter 4 Gates and Circuits.
COMP541 Transistors and all that… a brief overview
Transistors and Logic A B The digital contract
ECE 352 Digital System Fundamentals
Presentation transcript:

Computer Organization and Design Transistors & Logic - II Montek Singh Wed, Oct 17, 2012 Lecture 11

Today’s Topics  Implementing digital logic transistor-level circuits transistor-level circuits gate-level circuits gate-level circuits 2

From Transistors… to Gates!  Logic Gate recipe: use complementary arrangements of PFETs and NFETs use complementary arrangements of PFETs and NFETs  called CMOS (“complementary metal-oxide semiconductor”) at any time: either “pullup” active, or “pulldown”, never both! at any time: either “pullup” active, or “pulldown”, never both! V DD V IN V OUT pullup: make this connection when V IN is near 0 so that V OUT = V DD pulldown: make this connection when V IN is near V DD so that V OUT = 0 We’ll use p-type here and, n-type here Gnd

CMOS Inverter V in V out V in V out AY inverter Only a narrow range of input voltages result in “invalid” output values. (This diagram is greatly exaggerated) Valid “1” Valid “0” Invalid “1”“1”“0”“0” “0”“0”“1”“1”

CMOS Complements conducts when A is highconducts when A is low conducts when A is high and B is high: A. B A B AB conducts when A is low or B is low: A+B = A. B conducts when A is high or B is high: A+B A B AB conducts when A is low and B is low: A. B = A+B AA Series N connections: Parallel N connections: Parallel P connections: Series P connections:

A Two Input Logic Gate A B What function does this gate compute? A B C

Here’s Another… What function does this gate compute? A B C A B

CMOS Gates Like to Invert Observation: CMOS gates tend to be inverting! One or more “0” inputs are necessary to generate a “1” output One or more “0” inputs are necessary to generate a “1” output One or more “1” inputs are necessary to generate a “0” output One or more “1” inputs are necessary to generate a “0” output Why? Why? A B

General CMOS Gate Recipe Step 1. Figure out pulldown network that does what you want (i.e the set of conditions where the output is ‘0’) e.g., F = A*(B+C) A BC Step 2. Walk the hierarchy replacing nfets with pfets, series subnets with parallel subnets, and parallel subnets with series subnets A B C Step 3. Combine pfet pullup network from Step 2 with nfet pulldown network from Step 1 to form fully- complementary CMOS gate. A B C A BC

One Last Exercise  Lets construct a gate to compute: F = A+BC = NOT(OR(A,AND(B,C))) F = A+BC = NOT(OR(A,AND(B,C))) Step 1: Draw the pull-down network Step 1: Draw the pull-down network Step 2: The complementary pull-up network Step 2: The complementary pull-up network F A B C V dd A BC

One Last Exercise  Lets construct a gate to compute: F = A+BC = NOT(OR(A,AND(B,C))) F = A+BC = NOT(OR(A,AND(B,C))) Step 1: Draw the pull-down network Step 1: Draw the pull-down network Step 2: The complementary pull-up network Step 2: The complementary pull-up network Step 3: Combine and Verify Step 3: Combine and Verify F A B C V dd A B C ABCF

Now We’re Ready to Design Stuff!  We need to start somewhere usually it’s the functional specification usually it’s the functional specification A B Y If C is 1 then copy B to Y, otherwise copy A to Y C If you are like most engineers you’d rather see a table, or formula than parse a logic puzzle. The fact is, any combinational function can be expressed as a table. These “truth tables” are a concise description of the combinational system’s function. Conversely, any computation performed by a combinational system can expressed as a truth table. Truth Table

A Slight Diversion  Are we sure we have all the gates we need? How many two-input gates are there? How many two-input gates are there? All of these have 2-inputs (no surprise) All of these have 2-inputs (no surprise)  … 2 inputs have 4 possible values How many possible patterns for 4 outputs are there? ___ How many possible patterns for 4 outputs are there? ___  Generalizing, for N inputs, there are 2 (2^N) gates ANDORNANDNOR SURGE 2424

There Are Only So Many Gates  There are only 16 possible 2-input gates … some we know already, others are just silly … some we know already, others are just silly  Do we need all of these gates? Nope. We describe them all using AND, OR, and NOT. Nope. We describe them all using AND, OR, and NOT. How many of these gates can actually be implemented using a single CMOS gate?

We Can Make Most Gates Out of Others  How many different gates do we really need? B>A A B y XOR A B Y A B Y

One Will Do!  NANDs and NORs are universal one can make any circuit out of just NANDs, or just NORs! one can make any circuit out of just NANDs, or just NORs!  Ah! But what if we want more than 2-inputs? = = = = = =

Gate Trees Suppose we have some 2-input XOR gates: And we want an N-input XOR: A0011A0011 B0101B0101 C0110C0110 t pd = 1 t pd = O( ___ ) -- WORST CASE. output = 1 iff number of 1s in input is ODD (“ODD PARITY”) Can we compute N-input XOR faster? N

Gate Trees N-input TREE has O( ______ ) levels... Signal propagation takes O( _______ ) gate delays. log N log 2 N

Design Approach: Sum-of-Products Three steps: 1. Write functional spec as a truth table 2. Write down a Boolean expression for every ‘1’ in the output 3. Wire up the gates!  This approach will always give us logic expressions in a particular form: SUM-OF-PRODUCTS SUM-OF-PRODUCTS  SUM actually means OR  PRODUCT actually means AND Truth Table

Straightforward Synthesis  We can implement SUM-OF-PRODUCTS… …with just three levels of logic …with just three levels of logic  INVERTERS/AND/OR ABCABC ABCABC ABCABC ABCABC Y

Notations  Symbols and Boolean operators:

DeMorgan’s Laws  Change ANDs into ORs and vice-versa

AB=A+B Useful Gate Structures  NAND-NAND  NOR-NOR C A B Y C A B Y  C A B Y  C A B Y C A B Y C A B Y AB=A+B “Pushing Bubbles” DeMorgan’s Laws

An Interesting 3-Input Gate: Multiplexer  Based on C, select the A or B input to be copied to the output Y. Truth Table A B Y C If C is 1 then copy B to Y, otherwise copy A to Y 2-input Multiplexer B C A Y “schematic” diagram A B C 0 1 Gate symbol

Multiplexer (MUX) Shortcuts S01S S01S S01S I0I1I2I3I0I1I2I3 Y S 0 S 1 A 4-input Mux (implemented as a tree) S01S S01S A2B2A3B3A2B2A3B3 Y0Y0 S S01S S01S A0B0A1B1A0B0A1B1 Y1Y1 Y2Y2 Y3Y3 A 4-bit wide 2-input Mux ABCDSABCDS Y A 0-3 B 0-3 S Y 0-3

Next  Arithmetic Circuits