We know binary We know how to add and subtract in binary –Same as in decimal Next up: learn how apply this knowledge Boolean and Binary Inputs.

Slides:



Advertisements
Similar presentations
Computer Science 210 Computer Organization Introduction to Logic Circuits.
Advertisements

L14: Boolean Logic and Basic Gates
CSET 4650 Field Programmable Logic Devices
COMP541 Transistors and all that… a brief overview
ECE 238L Computer Logic Design Spring 2010
Appendix B Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
Chapter 11_1 (chap 10 ed 8) Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean.
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.
1 CS 140L Lecture 1 CK Cheng CSE Dept. UC San Diego Copyright © 2007 Elsevier.
1 CS 140L Lecture 1 CK Cheng CSE Dept. UC San Diego.
1 Boolean Algebra & Logic Design. 2 Developed by George Boole in the 1850s Mathematical theory of logic. Shannon was the first to use Boolean Algebra.
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.
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.
Lecture 2. Logic Gates Prof. Taeweon Suh Computer Science Education Korea University ECM585 Special Topics in Computer Design.
Boolean Algebra and Logic Simplification
Gates and Logic: From switches to Transistors, Logic Gates and Logic Circuits Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University.
Digital Design - Combinational Logic Design Chapter 2 - Combinational Logic Design.
ECE 331 – Digital System Design Transistor Technologies, and Realizing Logic Gates using CMOS Circuits (Lecture #23)
COMP541 Combinational Logic - I
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Chapter 10_1 Digital Logic. Irvine, Kip R. Assembly Language for Intel-Based Computers, NOT AND OR XOR NAND NOR Truth Tables Boolean Operators.
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):
1 CHAPTER 4: PART I ARITHMETIC FOR COMPUTERS. 2 The MIPS ALU We’ll be working with the MIPS instruction set architecture –similar to other architectures.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
1 Logic Gates Digital Computer Logic Kashif Bashir WWW:
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
Lecture 2. Logic Gates Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
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.
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
1 COMP541 Combinational Logic - I Montek Singh Jan 11, 2012.
Class 02 DICCD Transistors: Silicon Transistors are built out of silicon, a semiconductor Pure silicon is a poor conductor (no free charges) Doped.
Figure 3.1 Logic values as voltage levels Figure 3.2 NMOS transistor as a switch DrainSource x = "low"x = "high" (a) A simple switch controlled by the.
Logic and Computer Design Simon Petruc-Naum CS 147 – Dr. S.M. Lee.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Circuit Simplification Truth Table  Minimized Logic Gates.
1 Transistors, Boolean Algebra Lecture 2 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier, 2007.
Logic Gates By Taweesak Reungpeerakul
1 Lecture 6 BOOLEAN ALGEBRA and GATES Building a 32 bit processor PH 3: B.1-B.5.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
 Seattle Pacific University EE Logic System DesignNMOS-CMOS-1 Voltage-controlled Switches In order to build circuits that implement logic, we need.
Chapter 1 Digital Design and Computer Architecture, 2nd Edition
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Announcements Assignment 6 due tomorrow No Assignment 7 yet.
Chapter 1 Computer System Architectures Chapter 1 Based on Digital Design and Computer Architecture, 2 nd Edition David Money Harris and Sarah L. Harris.
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.
Introduction to CMOS Transistor and Transistor Fundamental
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
Lecture 2. Logic Gates Prof. Taeweon Suh Computer Science & Engineering Korea University COSE221, COMP211 Logic Design.
Logic gates.
Morgan Kaufmann Publishers
Computer Science 210 Computer Organization
Logic Gates and Boolean Algebra
Transistors and Logic Circuits
CHAPTER 1 : INTRODUCTION
CHAPTER 2 Boolean Algebra
Karnaugh Maps (K-Maps)
Computer Science 210 Computer Organization
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
BASIC & COMBINATIONAL LOGIC CIRCUIT
3-Variable K-map AB/C AB/C A’B’ A’B AB AB’
Laws & Rules of Boolean Algebra
Computer Architecture
Presentation transcript:

We know binary We know how to add and subtract in binary –Same as in decimal Next up: learn how apply this knowledge Boolean and Binary Inputs

Discrete voltages represented by 1 and 0 For example: 0 = ground (GND) or 0 volts 1 = V DD or 5 volts What about 4.99 volts? Is that a 0 or a 1? What about 3.2 volts? Boolean and Binary Inputs

Logic Levels Range of voltages for 1 and 0 Different ranges for inputs and outputs to allow for noise

Logic Gates Perform logic functions: –inversion (NOT), AND, OR, etc. Single-input: –NOT gate, buffer Two-input: –AND, OR, etc. Boolean and Binary Inputs

The Static Discipline With logically valid inputs, every circuit element must produce logically valid outputs Use limited ranges of voltages to represent discrete values

Practical Application NM H = V OH – V IH NM L = V IL – V OL

Practical Application - Transistors Logic gates built from transistors 3-ported voltage-controlled switch –2 ports connected depending on voltage of 3rd –d and s are connected (ON) when g is 1

Boolean Algebra 8 Boolean algebra is based on the binary number system George Boole (November 2, 1815 – December 8, 1864)

Boolean Algebra 9 Truth Tables Boolean operations can be defined using a Truth Table. Inversion:A AND: ABA·B OR: ABA+B or just AB

Boolean Algebra 10 Truth Tables Boolean operations can be defined using a Truth Table. XOR: ABABABAB NAND: ABA·B NOR: ABA+B

Boolean Algebra 11 DeMorgan’s Theorems ABA·BA·BABA + B A·B = A + BA+B = A · B Proof: ABA+BA+BABA · B

Boolean Algebra 12 Example ABCABCABBCBCABF F = AB + BC + BC + AB

Boolean Algebra 13 Another Example F = AB + BC + BC + AC ABCCABBCBCACF

Boolean Algebra 14 F = AB + BC + BC + AC ABCCABBCBCACF Is there a simpler way to determine how these inputs can produce these outputs? Probably.

Boolean Algebra 15 Simplifying logical expression using Boolean algebra is not easy. Obscure identities must be applied in clever ways (this requires LOTS of practice). There is a much easier (and more practical) way: Karnaugh maps ABCDF ABCDF F = A B C D

Boolean Algebra 16 ABCDF ABCDF F = _ A B C D Karnaugh maps Karnaugh Maps - Rules of Simplification Rule 1. Groups may not include any cell containing a zero

Boolean Algebra 17 ABCDF ABCDF F = _ A B C D Karnaugh maps Karnaugh Maps - Rules of Simplification Rule 2. Groups may be horizontal or vertical, but not diagonal.

Boolean Algebra 18 ABCDF ABCDF F = A B C D Karnaugh Maps - Rules of Simplification Rule 3. Groups must contain 1, 2, 4, 8, or in general 2 n cells. That is if n = 1, a group will contain two 1's since 2 1 = 2. If n = 2, a group will contain four 1's since 2 2 = 4.

Boolean Algebra 19 ABCDF ABCDF F = A B C D Karnaugh Maps - Rules of Simplification Rule 4. Each group should be as large as possible. Each cell containing a one must be in at least one group.

Boolean Algebra 20 ABCDF ABCDF F = A B C D Karnaugh Maps - Rules of Simplification Rule 5. Groups may overlap.

Boolean Algebra 21 ABCDF ABCDF F = A B C D Karnaugh Maps - Rules of Simplification Rule 6. Groups may wrap around the table. The leftmost cell in a row may be grouped with the rightmost cell and the top cell in a column may be grouped with the bottom cell.

Boolean Algebra 22 ABCDF ABCDF F = A B C D Karnaugh Maps - Rules of Simplification Rule 7. There should be as few groups as possible, as long as this does not contradict any of the previous rules.

Boolean Algebra 23 F = A B C D Karnaugh Maps - Rules of Simplification Rule 7. There should be as few groups as possible, as long as this does not contradict any of the previous rules. Rule 6. Groups may wrap around the table. The leftmost cell in a row may be grouped with the rightmost cell and the top cell in a column may be grouped with the bottom cell. Rule 5. Groups may overlap. h?v=PA0kBrpHLM4 Rule 1. Groups may not include any cell containing a zero Rule 4. Each group should be as large as possible. Each cell containing a one must be in at least one group. Rule 3. Groups must contain 1, 2, 4, 8, or in general 2 n cells. That is if n = 1, a group will contain two 1's since 2 1 = 2. If n = 2, a group will contain four 1's since 2 2 = 4. Rule 2. Groups may be horizontal or vertical, but not diagonal.

Boolean Algebra 24 Simplifying logical expression using Boolean algebra is not easy. Obscure identities must be applied in clever ways (this requires LOTS of practice). There is a much easier (and more practical) way: Karnaugh maps ABCDF ABCDF F = AC + AB + BCD ___ A B C D

Implementing Logic with Switches 25 X Y XYL XYL XOR: ABABABAB

Logic Gates 26

Nicknamed “Mayor of Silicon Valley” Cofounded Fairchild Semiconductor in 1957 Cofounded Intel in 1968 Co-invented the integrated circuit Figured out how to connect multiple transistors on a silicon chip Robert Noyce ( )

Practical Application - MOS Transistors Metal oxide silicon (MOS) transistors: –Polysilicon (used to be metal) gate –Oxide (silicon dioxide) insulator –Doped silicon

Practical Application - Transistors: nMos Gate = 0 OFF (no connection between source and drain) Gate = 1 ON (channel between source and drain)

Practical Application - Transistors: pMOS pMOS transistor is opposite –ON when Gate = 0 –OFF when Gate = 1

Practical Application - Transistor Function

Practical Application - nMOS vs pMOS nMOS: pass good 0’s, so connect source to GND pMOS: pass good 1’s, so connect source to V DD V DD GND

Practical Application - CMOS Gates: nMOS AP1N1Y 0 1

Practical Application - CMOS Gates: nMOS AP1N1Y 0ONOFF1 1 ON0