From Switches to Transistors and Gates

Slides:



Advertisements
Similar presentations
Switching circuits Composed of switching elements called “gates” that implement logical blocks or switching expressions Positive logic convention (active.
Advertisements

Digital Logic Design Gate-Level Minimization
Digital Circuits.
ECE 238L Computer Logic Design Spring 2010
Boolean Algebra and Combinational Logic
Kevin Walsh CS 3410, Spring 2010 Computer Science Cornell University Gates and Logic See: P&H Appendix C.2, C.3 xkcd.com/74/
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
Lecture 14 Today we will Learn how to implement mathematical logical functions using logic gate circuitry, using Sum-of-products formulation NAND-NAND.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 4-1 Chapter #2: Two-Level Combinational Logic Section 2.3, Switches and Tools.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Gates and Logic Hakim Weatherspoon CS 3410, Spring 2011 Computer Science Cornell Universty See: P&H Appendix C.0, C.1, C.2.
Prof. Kavita Bala and Prof. Hakim Weatherspoon CS 3410, Spring 2014 Computer Science Cornell University See: P&H Appendix B.2 and B.3 (Also, see B.0 and.
Numbers & Arithmetic Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University See: P&H Chapter , 3.2, C.5 – C.6.
Gates and Logic: From switches to Transistors, Logic Gates and Logic Circuits Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University.
EEE324 Digital Electronics Ian McCrumRoom 5B18, Lecture 4: Boolean Algebra.
Digital Logic ENEL 111. Digital systems A digital system is a system whose inputs and outputs fall within a discrete, finite set of values Two main types.
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
Boolean Algebra and Digital Circuits
Digital Logic Basics Chapter 2 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer, 
Gates and Logic Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell Universty See: P&H Appendix C.2 and C.3 (Also, see C.0 and C.1)
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Numbers & Arithmetic Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University See: P&H Chapter , 3.2, C.5 – C.6.
Gates and Logic Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell Universty See: P&H Appendix C.2 and C.3 (Also, see C.0 and C.1)
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Chapter 3: Digital Logic Dr Mohamed Menacer Taibah University
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Prof. Hakim Weatherspoon CS 3410, Spring 2015 Computer Science Cornell University See: P&H Appendix B.2 and B.3 (Also, see B.1)
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
From Switches to Transistors and Gates Prof. Sirer CS 316 Cornell University.
Announcements Project components starting to arrive No assignment due this week – assignment 7 will be posted on Thursday. Final exam date. Let’s leave.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
K-maps and Decoders Prof. Sin-Min Lee Department of Computer Science.
Digital Logic.
CHAPTER 3 Simplification of Boolean Functions
ECE 2110: Introduction to Digital Systems
Department of Preparatory Year, Umm Al Qura University
Logic Gates and Boolean Algebra
ECE 2110: Introduction to Digital Systems
Chapter 2: Boolean Algebra and Logic Functions
ECE 2110: Introduction to Digital Systems
ECE 3110: Introduction to Digital Systems
CHAPTER 1 : INTRODUCTION
Digital Logic.
Boolean Algebra and Combinational Logic
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
Digital Logic and Design
Basics Combinational Circuits Sequential Circuits
4. Transistors and logic gates
Gates and Logic: From Transistors to Logic Gates and Logic Circuits
Hakim Weatherspoon CS 3410, Spring 2013 Computer Science
Digital Circuits.
BASIC & COMBINATIONAL LOGIC CIRCUIT
Reading: Hambley Ch. 7 through 7.5
Dr. Clincy Professor of CS
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Gates and Logic: From Transistors to Logic Gates and Logic Circuits
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Principles & Applications
Laws & Rules of Boolean Algebra
Karnaugh Map Method By: Asst Lec. Besma Nazar Nadhem
Gates and Logic: From Transistors to Logic Gates and Logic Circuits
Digital Circuits.
Computer Architecture
Digital Circuits.
Reading: Hambley Ch. 7 through 7.5
Presentation transcript:

From Switches to Transistors and Gates Prof. Sirer CS 303 Koç University

Origins The most amazing and likely to be most long- lived invention of the 1800’s was…

Origins The most amazing and likely to be most long- lived invention of the 1800’s was… The steam engine? The lightning rod? The carbonated beverage?

Origins The most amazing and likely to be most long- lived invention of the 1800’s was… THE ELECTRIC SWITCH

A switch A switch is a simple device that can act as a conductor or isolator Can be used for amazing things…

Switches + Either (OR) -

Switches Either (OR) Both (AND) + - - One can build basic devices, but operation requires mechanical force

Transistors What happens when switches are replaced with solid-state devices The most amazing invention of the 1900s Can be used for purposes other than switching (e.g. radios) Two types, PNP and NPN - + P P N collector emitter collector collector base + NPN N N - P PNP base emitter emitter

P and N Transistors PNP Transistor Connect E to C when base = 0 NPN Transistor Connect E to C when base = 1 E E B B C C Can be used to build primitives from which electronic machines can be constructed

Then and Now The first transistor, on a workbench at AT&T Bell Laboratories in 1947 An Intel Pentium has approximately 125 million transistors

Inverter + Function: NOT Called an inverter Symbol: Useful for taking the inverse of an input in out gnd in out In Out 1 Truth table

NAND Gate + Function: NAND Symbol: a a b out out b gnd A B out 1

NOR Gate + out b Function: NOR Symbol: a gnd A B out 1

Building Functions NOT: AND: a OR: b NAND and NOR are universal, can implement any function using just NAND or just NOR gates useful for manufacturing Can specify functions by describing gates, truth tables or logic equations a b a b

Logic Equations AND out = ab OR out = a + b NOT out = a

Identities Identities are useful for manipulating logic equations For purposes of optimization & ease of implementation a + a = 1 a + 0 = a a + 1 = 1 aa = 0 a0 = 0 a1 = a a(b+c) = ab + ac (a + b) = a b (a b) = a + b a + a b = a + b

Logic Manipulation Can manipulate logic equations algebraically Can also use a truth table to prove equivalence Example: (a+b)(a+c) = a + bc (a+b)(a+c) = aa + ab + ac + bc = a + a(b+c) + bc = a(1 + (b+c)) + bc = a + bc a b c a+b a+c LHS bc RHS 1

Logic Minimization for all outputs that are 1, A common problem is how to implement a desired function most efficiently One can derive the equation from the truth table How does one find the most efficient equation? Manipulate algebraically until satisfied Use Karnaugh maps a b c minterm abc 1 for all outputs that are 1, take the corresponding minterm, OR the minterms to obtain the result in “sum of products” form

Corresponding Karnaugh map Karnaugh maps Encoding of the truth table where adjacent cells differ in only one bit ab 00 01 11 10 a b out 1 1 Corresponding Karnaugh map truth table for AND

Bigger Karnaugh Maps a a b 4-input func 3-input func y b y c d c ab c 00 01 11 10 ab cd 00 01 11 10 00 1 01 11 10

Minimization with Karnaugh maps (1) b c out 1 Sum of minterms yields abc + abc + abc + abc

Minimization with Karnaugh maps (2) b c out 1 Sum of minterms yields abc + abc + abc + abc Karnaugh maps identify which inputs are (ir)relevant to the output ab c 00 01 11 10 1 1

Minimization with Karnaugh maps (2) b c out 1 Sum of minterms yields abc + abc + abc + abc Karnaugh map minimization Cover all 1’s Group adjacent blocks of 2n 1’s that yield a rectangular shape Encode the common features of the rectangle out = ab + ac ab c 00 01 11 10 1 1

Karnaugh Minimization Tricks (1) ab c 00 01 11 10 Minterms can overlap out = bc + ac + ab Minterms can span 2, 4, 8 or more cells out = c + ab 1 1 ab c 00 01 11 10 1 1

Karnaugh Minimization Tricks (2) ab cd 00 01 11 10 00 1 The map wraps around out = bd 01 11 10 ab cd 00 01 11 10 00 1 01 11 10

Karnaugh Minimization Tricks (3) ab cd 00 01 11 10 00 1 x “Don’t care” values can be interpreted individually in whatever way is convenient assume all x’s = 1 out = d assume middle x’s = 0 assume 4th column x = 1 out = bd 01 11 10 ab cd 00 01 11 10 00 1 x 01 11 10

Multiplexors A multiplexor selects between multiple inputs out = a, if d = 0 out = b, if d = 1 Build truth table Build Karnaugh map Derive logic diagram a b d

Multiplexor Implementation b d Build a truth table a b d out 1

Multiplexor Implementation b d Build the Karnaugh map ab d 00 01 11 10 1 a b d out 1 1

Multiplexor Implementation b d Derive minimal logic equation out = ad + bd ab d 00 01 11 10 a b d out 1 1 1

Multiplexor Implementation b d Draw the circuit out = ad + bd ab d 00 01 11 10 1 a b d out 1 1 a out d b

Summary We can now implement any logic circuit Can do it efficiently, using Karnaugh maps to find the minimal terms required Can use either NAND or NOR gates to implement the logic circuit Can use P- and N-transistors to implement NAND or NOR gates