Lecture 22: 11/19/2002CS170 Fall 20021 CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

L14: Boolean Logic and Basic Gates
CS 151 Digital Systems Design Lecture 5 Boolean Algebra.
ECE 238L Computer Logic Design Spring 2010
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
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.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra.
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Digital Design.
Propositional Calculus Math Foundations of Computer Science.
Boolean Algebra. Introduction 1854: Logical algebra was published by George Boole  known today as “Boolean Algebra” 1854: Logical algebra was published.
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
Digital Logic Design ESGD2201
CHAPTER 2 Boolean Algebra
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
Lecture 17: Digital Design Today’s topic –Intro to Boolean functions Reminders –HW 4 due Wednesday 10/8/2014 (extended) –HW 5 due Wednesday 10/15/2014.
DeMorgan Theorem, Computer Simulation Exercises
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
Digital Systems: Boolean Algebra and Logic Gates
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
Combinational Logic 1.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /05/2013 Lecture 4: Basics of Logic Design Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER.
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.
Boolean Algebra & Logic Prepared by Dr P Marais (Modified by D Burford)
Digital Logic. 2 Abstractions in CS (gates) Basic Gate: Inverter IO IO GNDI O Vcc Resister (limits conductivity) Truth Table.
Linear Algebra. Circuits The circuits in computers and other input devices have inputs, each of which is either a 0 or 1, the output is also 0s and 1s.
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
CS/COE0447 Computer Organization & Assembly Language
Chapter 4 Fundamentals of Computer Logic 1 Chapter 4: Fundamental of Computer Logic - IE337.
Logic Gates. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment,
Appendix C Basics of Digital Logic Part I. Florida A & M University - Department of Computer and Information Sciences Modern Computer Digital electronics.
Lecture 24: 12/3/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
CEC 220 Digital Circuit Design SOP and POS forms Friday, January 23 CEC 220 Digital Circuit Design Slide 1 of 17.
ECE DIGITAL LOGIC LECTURE 6: BOOLEAN ALGEBRA Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 02/01/2016.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Lecture 23: 11/26/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design Appendix C.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
Computer Architecture & Operations I
Computer Architecture & Operations I
Boolean Algebra & Logic Gates
Digital Logic.
Morgan Kaufmann Publishers
Logic Gates and Boolean Algebra
De Morgan’s Theorem,.
Digital Technology.
Unit 2 Boolean Algebra.
Logic Gates and Boolean Algebra
CHAPTER 2 Boolean Algebra
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
Digital Logic.
Princess Sumaya University
Boolean Expressions Lecture No. 10.
Jeremy R. Johnson Wed. Sept. 29, 1999
Dr. Clincy Professor of CS
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Boolean Algebra & Logic Circuits
CS/COE0447 Computer Organization & Assembly Language
Logic Gates.
Digital Logic.
Boolean Algebra Introduction CSCI 240
Boolean Algebra.
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
Agenda Lecture Content: Combinatorial Circuits Boolean Algebras
Presentation transcript:

Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture 22: 11/19/2002

CS170 Fall Outline Appendix B Basic definitions truth tables logic equations gates

Lecture 22: 11/19/2002CS170 Fall Logic Blocks (Logic Functions) Electronics inside a modern computer are digital Two voltage levels: High and Low correspond to 1 and 0 (On/Off)  1Logically true (asserted)  0Logically false (deasserted) Logic blocks(Logic Functions) Black box which has some set of inputs (logic variables-independent variables) and some other set of outputs (logic variables-dependent variables) Classes of Logic Functions Without memory (Combinatorial) Output depends only on the current input With memory (Sequential) Output can depend on both inputs and value stored in memory (memory is called the state of the logic block)

Lecture 22: 11/19/2002CS170 Fall Combinatorial Logic Functions Defining Combinatorial logic Functions 1. Truth tables2. Boolean Algebra3. Logic Gates Truth Tables With N inputs and each input having the value 1 or 0, there are precisely 2 N possible combinations of inputs (How do we list the input combinations?) For each of the possible combinations specify the output (1 or 0) of each output variable Example Three inputs A, B, and C, and three outputs D, E, and F. The function is defined as follows. D is true if at least one input is true. E is true if exactly two inputs are true. F is true only if all three inputs are true.  (D,E,F) = (1,0,0) means one and only one input of (A,B,C) is true (Why?)  (D,E,F) = (1,1,0) means exactly two of (A,B,C) are true

Lecture 22: 11/19/2002CS170 Fall Truth Table Example InputsOutputs ABCDEF D is true if at least one input is true. E is true if exactly two inputs are true. F is true only if all three inputs are true. Truth table completely defines the logic function Given an input (A,B,C) we can lookup the output (D,E,F) Problems?

Lecture 22: 11/19/2002CS170 Fall Boolean Algebra 1/2 Express Logic functions using logic equations (named after Boole, a 19 th century British mathematician) Rules All variables are either 1 or 0 Basic operators which act on variables. The common operators are  OR operator denoted by “+”. A OR B = A+B = 1 if either A or B or both are true (logical sum)  AND operator denoted by “.”. A AND B = A.B = 1 if both A and B are true (logical product)  Unary operator NOT written as (complement or inversion operator)

Lecture 22: 11/19/2002CS170 Fall Boolean Algebra 2/2 Identity Law Zero and One Laws Inverse Laws Commutative Laws Associative Laws Distributive Laws DeMorgan’s Laws Boolean Algebra Laws

Lecture 22: 11/19/2002CS170 Fall Generating Logic Equations from Truth Tables Two methods which can be used to systematically generate the logical function from a truth table Method A: Sum of Products(a logical sum of products (terms using AND operator)) Find all rows of the truth table for which the function is TRUE (1) For each such row, AND the variables or the complement of the variables. If the variable is true, use the variable in the AND. If the variable is False, use the complement of the variable in the AND Take the OR of all these terms. This is the desired function Method B: Product of Sums (a logical AND of sums (terms using the OR operator)) Find all rows of the truth table for which the function is FALSE (0) For each such row, OR the variables or the complement of the variables. If the variable is TRUE, use the complement of the variable in the OR. If the variable is False, use the variable in the OR Take the AND of all of these terms. This is the desired function

Lecture 22: 11/19/2002CS170 Fall Example InputsOutputs ABCDEF Output D Use method B (Why?) D = A+B+C Output F Use method A (Why?) F = A.B.C Output E Use method A (Why?) Equivalent to

Lecture 22: 11/19/2002CS170 Fall Logic Gates 1/2 Devices which implement basic logic functions  AND gate implements AND function  OR gate implements OR function  NOT function implemented with an inverter A B A.B A B A+B A Logic diagram of C A B A+B A+B+C

Lecture 22: 11/19/2002CS170 Fall Logic Gates 2/2 Can we simplify Using DeMorgan’s Theorem ABAB Can you express output E in the previous example as a gates diagram. Use only 2 input AND, OR, or inverters?

Lecture 22: 11/19/2002CS170 Fall Logic Gates Diagram or Circuit The process of obtaining a combinatorial logic circuit 1.Define the logic function 2.Translate the function to a truth table 3.Generate the logic equation using either sum of products or product of sums 4.Generate the logic circuit by replacing the logic operators by corresponding logic gates Between steps 3 and 4 we can simplify the resulting logic expression before obtaining the logic circuit, but we ignore this for now

Lecture 22: 11/19/2002CS170 Fall NAND and NOR Gates Universal gates. (AND, OR, NOT can be expressed in terms of NAND and NOR) NOR (An OR gate followed by an inverter) defined as X NOR Y = NOT (X OR B) = NAND (An AND gate followed by an inverter) defined as X NAND Y = NOT (X AND Y) = Can we show that NOR gate is universal? X NOR X = NOT X = X NOR X X + Y = NOT (X NOR Y) = (X NOR Y) NOR (X NOR Y) X.Y = (NOT X) NOR (NOT Y) = (X NOR X) NOR (Y NOR Y) Problem B.4 requests proving that NAND is universal?