Gates & Logic Computer Organization I 1 August 2009 ©2006-09 McQuain, Feng & Ribbens Logic Design Goal:to become literate in most common concepts.

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
TDC 311 Digital Logic. Truth Tables  AND  OR  NOT  NAND  NOR  XOR  XNOR.
Lecture 3. Boolean Algebra, Logic Gates
Propositional Calculus Math Foundations of Computer Science.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
XOR, XNOR, and Binary Adders
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
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 4 Gates and Circuits.
Boolean Logic By: Arthur Brooks February 25, 2003 Think, Speak, and Write Computer Science.
Binary Numbers.
Chapter 4 Gates and Circuits. Integrated Circuits aka CHIPS What’s in this thing???? 4–2.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Chapter 4 Gates and Circuits.
Binary Addition CSC 103 September 17, 2007.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
CPS120: Introduction to Computer Science
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Digital Logic Computer Organization 1 © McQuain Logic Design Goal:to become literate in most common concepts and terminology of digital.
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.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Digital Logic. 2 Abstractions in CS (gates) Basic Gate: Inverter IO IO GNDI O Vcc Resister (limits conductivity) Truth Table.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
Introduction to Computing Systems and Programming Digital Logic Structures.
LECTURE 4 Logic Design. LOGIC DESIGN We already know that the language of the machine is binary – that is, sequences of 1’s and 0’s. But why is this?
Gates AND, OR, NOT NAND, NOR Combinational logic No memory A set of inputs uniquely and unambiguously specifies.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
How does a Computer Add ? Logic Gates within chips: AND Gate A B Output OR Gate A B Output A B A B
Adders Computer Organization I 1 August 2009 © McQuain, Feng & Ribbens 1-bit Full Adder The expressions for the sum and carry lead to the.
WORKING PRINCIPLE OF DIGITAL LOGIC
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Week 1: Introduction and Logic gates IT3002 – Computer Architecture
Computer Architecture & Operations I
Computer Architecture & Operations I
Digital Logic.
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Combinational Circuits
ECE 3130 Digital Electronics and Design
Logic Gates.
Digital Signals Digital Signals have two basic states:
Chapter 4 Gates and Circuits.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Boolean Algebra.
Week 7: Gates and Circuits: PART II
Logic Gates.
Digital Logic.
Logic Gates.
Logic Gates.
CS Chapter 3 (3A and ) – Part 2 of 5
Digital Logic.
DIGITAL ELECTRONICS B.SC FY
Chapter 10.3 and 10.4: Combinatorial Circuits
Combinational Circuits
XOR Function Logic Symbol  Description  Truth Table 
Digital Fundamentals Floyd Chapter 5 Tenth Edition
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Presentation transcript:

Gates & Logic Computer Organization I 1 August 2009 © McQuain, Feng & Ribbens Logic Design Goal:to become literate in most common concepts and terminology of digital electronics Important concepts: -use abstraction and composition to implement complicated functionality with very simple digital electronics -keep things as simple, regular, and small as possible Things we will not explore: -physics -chip fabrication -layout -tools for chip specification and design

Gates & Logic Computer Organization I 2 August 2009 © McQuain, Feng & Ribbens Motivation Consider the external view of addition: What kind of circuitry would go into the "black box" adder to produce the correct results? How would it be designed? What modular components might be used? Adder ??? x + y y x

Gates & Logic Computer Organization I 3 August 2009 © McQuain, Feng & Ribbens Basic Logic Gates Fundamental building blocks of circuits; mirror the standard logical operations: OR gateAND gateNOT gate AOut AB AB Note the outputs of the AND and OR gates are commutative with respect to the inputs. Multi-way versions of the AND and OR gates are commonly assumed in design.

Gates & Logic Computer Organization I 4 August 2009 © McQuain, Feng & Ribbens Multi-way Gates 5-way AND gate Multi-way versions of the AND and OR gates are commonly assumed in design. They may be trivially implemented using the basic 2-input versions: We will generally assume the availability of n-input AND and OR gates for arbitrary values of n.

Gates & Logic Computer Organization I 5 August 2009 © McQuain, Feng & Ribbens Combinational and Sequential Circuits A combinational circuit is one with no "memory". That is, its output depends only upon the current state of its inputs, and not at all on the current state of the circuit itself. A sequential circuit is one whose output depends not only upon the current state of its inputs, but also on the current state of the circuit itself. For now, we will consider only combinational circuits.

Gates & Logic Computer Organization I 6 August 2009 © McQuain, Feng & Ribbens From Function to Combinational Circuit Given a simple Boolean function, it is relatively easy to design a circuit composed of the basic logic gates to implement the function: This circuit implements the exclusive or (XOR) function. This is often represented as a single logic gate:

Gates & Logic Computer Organization I 7 August 2009 © McQuain, Feng & Ribbens Additional Common Logic Gates NAND gateXOR gate ABOut AB NOR gate ABOut XNOR gate ABOut

Gates & Logic Computer Organization I 8 August 2009 © McQuain, Feng & Ribbens Efficiency of Expression While the sum-of-products form is arguably natural, it is not necessarily the simplest way form, either in: -number of gates (space) -depth of circuit (time)

Gates & Logic Computer Organization I 9 August 2009 © McQuain, Feng & Ribbens 1-bit Half Adder Let's make a 1-bit adder (half adder)… we can think of it as a Boolean function with two inputs and the following defining table: ABSum Here's the resulting circuit. It's equivalent to the XOR circuit seen earlier. But… in the final row of the truth table above, we've ignored the fact that there's a carry-out bit.

Gates & Logic Computer Organization I 10 August 2009 © McQuain, Feng & Ribbens Dealing with the Carry The carry-out value from the 1-bit sum can also be expressed via a truth table. However, the result won't be terribly useful unless we also take into account a carry-in. ABC in SumC out The resulting sum-of-products expressions are:

Gates & Logic Computer Organization I 11 August 2009 © McQuain, Feng & Ribbens 1-bit Full Adder The expressions for the sum and carry lead to the following unified implementation: This implementation requires only two levels of logic (ignoring the inverters as customary). Is there an alternative design that requires fewer logic gates? If so, how many levels does it require?