Appendix C Basics of Logic Design. Appendix C — Logic Basic — 2 Logic Design Basics §4.2 Logic Design Conventions Objective: To understand how to build.

Slides:



Advertisements
Similar presentations
Tutorial 2 Sequential Logic. Registers A register is basically a D Flip-Flop A D Flip Flop has 3 basic ports. D, Q, and Clock.
Advertisements

1 Combinational Logic Design&Analysis. 2 Introduction We have learned all the prerequisite material: – Truth tables and Boolean expressions describe functions.
التصميم المنطقي Second Course
Registers and Counters. Register Register is built with gates, but has memory. The only type of flip-flop required in this class – the D flip-flop – Has.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /23/2013 Lecture 7: Computer Clock & Memory Elements Instructor: Ashraf Yaseen DEPARTMENT OF MATH &
Chapter 1 — Computer Abstractions and Technology — 1 Lecture 7 Carry look ahead adders, Latches, Flip-flops, registers, multiplexors, decoders Digital.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design.
ECE 15B Computer Organization Spring 2010 Dmitri Strukov Lecture 2: Overview of Computer Organization Partially adapted from Computer Organization and.
Logic Circuits Another look at Floating Point Numbers Common Combinational Logic Circuits Timing Sequential Circuits Note: Multiplication & Division in.
Lec 17 Nov 2 Chapter 4 – CPU design data path design control logic design single-cycle CPU performance limitations of single cycle CPU multi-cycle CPU.
The Processor Andreas Klappenecker CPSC321 Computer Architecture.
Transistors and Logic Circuits. Transistor control voltage in voltage out control high allows current to flow -- switch is closed (on) control low stops.
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.
Chapter 2Basic Digital Logic1 Chapter 2. Basic Digital Logic2 Outlines  Basic Digital Logic Gates  Two types of digital logic circuits Combinational.
Chapter 4 CSF 2009 The processor: Building the datapath.
Lecture 8: Processors, Introduction EEN 312: Processors: Hardware, Software, and Interfacing Department of Electrical and Computer Engineering Spring 2014,
Lecture 14: Processors CS 2011 Fall 2014, Dr. Rozier.
מבנה מחשב תרגול 2. 2 Boolean AND Operation Truth Table Equivalent Gate Different notations:
Lec 15Systems Architecture1 Systems Architecture Lecture 15: A Simple Implementation of MIPS Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan Some.
Computer Organization CS224 Fall 2012 Lesson 22. The Big Picture  The Five Classic Components of a Computer  Chapter 4 Topic: Processor Design Control.
ECE 445 – Computer Organization
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /19/2013 Lecture 17: The Processor - Overview Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER.
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
CS/COE0447 Computer Organization & Assembly Language
CS 61C L4.1.2 State (1) K. Meinz, Summer 2004 © UCB CS61C : Machine Structures Lecture State and FSMs Kurt Meinz inst.eecs.berkeley.edu/~cs61c.
Appendix C Basics of Digital Logic Part I. Florida A & M University - Department of Computer and Information Sciences Modern Computer Digital electronics.
CPU Overview Computer Organization II 1 February 2009 © McQuain & Ribbens Introduction CPU performance factors – Instruction count n Determined.
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?
Lecture 23: 11/26/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
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.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design Appendix C.
Lecture 1 Gunjeet kaur Dronacharya group of institutions.
Sequential Logic Design
Computer Architecture & Operations I
The Basics of Logic Design Patterson & Hennessy, © 2005 Elsevier, Inc.
Computer Architecture & Operations I
Class Exercise 1B.
Transistors and Logic Circuits
Computer Architecture & Operations I
DIGITAL LOGIC CIRCUITS
מבנה מחשב תרגול 3.
Computer Architecture & Operations I
Transistors and Logic Circuits
Morgan Kaufmann Publishers
Seoul National University
Computer Architecture & Operations I
Morgan Kaufmann Publishers The Processor
Basics of digital systems
Morgan Kaufmann Publishers
DIGITAL LOGIC CIRCUITS
Basics of Digital Logic Design Presentation D
ECE 434 Advanced Digital System L03
Reading: Hambley Chapters
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
CPE/EE 422/522 Advanced Logic Design L02
Fundamentals of Computer Science Part i2
Appendix D Mapping Control to Hardware
CS/COE0447 Computer Organization & Assembly Language
Levels in Processor Design
The Processor Lecture 3.1: Introduction & Logic Design Conventions
Part I Background and Motivation
CS/COE0447 Computer Organization & Assembly Language
Combinational Circuits
Sequential Logic.
Instructor: Alexander Stoytchev
Levels in Processor Design
Digital Circuits and Logic
Presentation transcript:

Appendix C Basics of Logic Design

Appendix C — Logic Basic — 2 Logic Design Basics §4.2 Logic Design Conventions Objective: To understand how to build a processor 32 operation result a b ALU Program in C++ Compiler + Assemble r

Appendix C — Logic Basic — 3 Logic Design Basics §4.2 Logic Design Conventions Information encoded in binary Low voltage = 0, High voltage = 1 One wire per bit Multi-bit data encoded on multi-wire buses Combinational element Operate on data Output is a function of input State (sequential) elements Store information

Appendix C — Logic Basic — 4 Combinational and Sequential Logic §4.2 Logic Design Conventions Combinational logic: A logic system whose blocks do not contain memory and hence compute the same output given the same input. Sequential logic A group of logic elements that contain memory and hence whose value depends on the inputs as well as the current contents of the memory.

Appendix C — Logic Basic — 5 Combinational Elements AND-gate Y = A & B A B Y I0 I1 Y MuxMux S Multiplexer Y = S ? I1 : I0 A B Y + A B Y ALU F Adder Y = A + B Arithmetic/Logic Unit Y = F(A, B)

Appendix C — Logic Basic — 6 Combinational Elements Output is completely specified by the input TRUTH TABLE is a way of describing how an output of a combinational logic depends on the input – completely specifies the logic function Example: Basic logic function such as AND INPUTOUTPUT ABY How many entries in a truth table?

Appendix C — Logic Basic — 7 Truth Table

Appendix C — Logic Basic — 8 Boolean Algebra Alternate way to represent logical functions: Use Boolean Algebra to express logical functions as logical equations

Appendix C — Logic Basic — 9 Laws of Boolean Algebra

Appendix C — Logic Basic — 10 DeMorgan’s Theorem

Appendix C — Logic Basic — 11 Logic Equations

Appendix C — Logic Basic — 12 Logic Equations

Appendix C — Logic Basic — 13 Logic Equations

Appendix C — Logic Basic — 14 Gates Any logical function can be constructed using AND gates, OR gates, and inversion.

Appendix C — Logic Basic — 15 Gates How do you realize the following logic function using gates?

Appendix C — Logic Basic — 16 Gates Another way to realize the same logic function? Using DeMorgan’s Theorem

Appendix C — Logic Basic — 17 Gates

Appendix C — Logic Basic — 18 Larger Logic Blocks

Appendix C — Logic Basic — 19 Multiplexor

Appendix C — Logic Basic — 20 Sum of Product Can we convert this into Product of Sum form?

Appendix C — Logic Basic — 21 Product of Sum

Appendix C — Logic Basic — 22 Truth Table to Sum of Product

Appendix C — Logic Basic — 23 Programmable Logic Array (PLA)

Appendix C — Logic Basic — 24 Programmable Logic Array (PLA) Show the PLA implementation using (a) dots diagram, and (b) Gates for the following truth table

Appendix C — Logic Basic — 25 Programmable Logic Array (PLA)

Appendix C — Logic Basic — 26 Programmable Logic Array (PLA)

Appendix C — Logic Basic — 27 Don’t Care

Appendix C — Logic Basic — 28 Don’t Care

Appendix C — Logic Basic — 29 Array of Logic Elements

Appendix C — Logic Basic — 30 1-Bit ALU

Appendix C — Logic Basic — 31 1-Bit ALU

Appendix C — Logic Basic — 32 1-Bit ALU

Appendix C — Logic Basic — Bit ALU

Appendix C — Logic Basic — 34 Sequential Elements Register: stores data in a circuit Uses a clock signal to determine when to update the stored value Edge-triggered: update when Clk changes from 0 to 1 D Clk Q D Q

Appendix C — Logic Basic — 35 Sequential Elements Register with write control Only updates on clock edge when write control input is 1 Used when stored value is required later D Clk Q Write D Q Clk

Appendix C — Logic Basic — 36 Clocking Methodology Combinational logic transforms data during clock cycles Between clock edges Input from state elements, output to state element Longest delay determines clock period

Appendix C — Logic Basic — 37 Basic Memory Element

Appendix C — Logic Basic — 38 D Latch

Appendix C — Logic Basic — 39 D Flip Flop

Appendix C — Logic Basic — 40 D Flip Flop

Appendix C — Logic Basic — 41 Register File

Appendix C — Logic Basic — 42 Register File – Read Port

Appendix C — Logic Basic — 43 Register File – Write Port

Appendix C — Logic Basic — 44 SRAM Memory

Appendix C — Logic Basic — 45 SRAM Memory

Appendix C — Logic Basic — 46 SRAM Memory

Appendix C — Logic Basic — 47 DRAM Memory