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

Slides:



Advertisements
Similar presentations
Registers Computer Organization I 1 September 2009 © McQuain, Feng & Ribbens A clock is a free-running signal with a cycle time. A clock may.
Advertisements

Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
Computer Science 210 Computer Organization Clocks and Memory Elements.
Flip-Flops Computer Organization I 1 June 2010 © McQuain, Feng & Ribbens A clock is a free-running signal with a cycle time. A clock may be.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Flip-Flops, Registers, Counters, and a Simple Processor
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /23/2013 Lecture 7: Computer Clock & Memory Elements Instructor: Ashraf Yaseen DEPARTMENT OF MATH &
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
1 Sequential Systems A combinational system is a system whose outputs depend only upon its current inputs. A sequential system is a system whose outputs.
Nonlinear & Neural Networks LAB. CHAPTER 11 LATCHES AND FLIP-FLOPS 11.1Introduction 11.2Set-Reset Latch 11.3Gated D Latch 11.4Edge-Triggered D Flip-Flop.
Asynchronous Sequential Logic
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
ECE 3130 – Digital Electronics and Design Lab 5 Latches and Flip-Flops Fall 2012 Allan Guan.
Logic Circuits Another look at Floating Point Numbers Common Combinational Logic Circuits Timing Sequential Circuits Note: Multiplication & Division in.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
1  1998 Morgan Kaufmann Publishers Chapter Five The Processor: Datapath and Control.
CHAPTER 3 Digital Logic Structures
Chapter Five The Processor: Datapath and Control.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
1 Chapter 5: Datapath and Control CS 447 Jason Bakos.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
ETE Digital Electronics Latches and Flip-Flops [Lecture:12] Instructor: Sajib Roy Lecturer, ETE, ULAB.
Some Useful Circuits Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University.
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip Flop
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /10/2013 Lecture 5: Combinational Logic Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE.
Chapter 2Basic Digital Logic1 Chapter 2. Basic Digital Logic2 Outlines  Basic Digital Logic Gates  Two types of digital logic circuits Combinational.
ROM & PLA Digital Logic And Computer Design
Sequential Circuits. Two primary differences between combinational circuits and sequential circuits –Sequential circuits are synchronous (use a clock)
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /05/2013 Lecture 4: Basics of Logic Design Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Computer Architecture Lecture 4 Sequential Circuits Ralph Grishman September 2015 NYU.
Hamming Code,Decoders and D,T-flip flops Prof. Sin-Min Lee Department of Computer Science.
Feb. 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 12: State Elements, Registers, and Memory * Jeremy R. Johnson Mon. Feb.
CS/COE0447 Computer Organization & Assembly Language
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Sequential logic circuits
Appendix C Basics of Digital Logic Part I. Florida A & M University - Department of Computer and Information Sciences Modern Computer Digital electronics.
Sequential Logic Computer Organization II 1 © McQuain A clock is a free-running signal with a cycle time. A clock may be either high or.
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
Lecture 24: 12/3/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Chapter5: Synchronous Sequential Logic – Part 1
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?
July 2, 2001Systems Architecture I1 Systems Architecture II (CS 282) Lab 3: State Elements, Registers, and Memory * Jeremy R. Johnson Monday July 2, 2001.
Sequential Logic Flip-Flop Circuits By Dylan Smeder.
07/11/2005 Register File Design and Memory Design Presentation E CSE : Introduction to Computer Architecture Slides by Gojko Babić.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design Appendix C.
CHAPTER 11 LATCHES AND FLIP-FLOPS This chapter in the book includes: Objectives Study Guide 11.1Introduction 11.2Set-Reset Latch 11.3Gated D Latch 11.4Edge-Triggered.
The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering ECE122 – Lab 7 Latches & Flip-flops.
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.
Appendix B The Basics of Logic Design
Computer Science 210 Computer Organization
Computer Architecture & Operations I
Computer Architecture & Operations I
Computer Architecture & Operations I
Clocks A clock is a free-running signal with a cycle time.
Computer Architecture & Operations I
Morgan Kaufmann Publishers
CS Chapter 3 (3A and ) – Part 4 of 5
Computer Science 210 Computer Organization
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Computer Science 210 Computer Organization
CS/COE0447 Computer Organization & Assembly Language
COMS 361 Computer Organization
Clocks A clock is a free-running signal with a cycle time.
Presentation transcript:

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

CS170 Fall Outline Appendix B Combinatorial Logic Clocks Memory Elements

Lecture 23: 11/26/2002CS170 Fall Combinatorial Logic Programmable Logic Array (PLA) Decoders Multiplexors

Lecture 23: 11/26/2002CS170 Fall PLA The sum of products form of logic representation corresponds to a structured-logic implementation called a Programmable Logic Array (PLA) It has a set of inputs and corresponding input complements and two stages of logic.  The first stage is an array of AND gates that form a set of product terms (called minterms)  The second stage is an array of OR gates each of which forms a logical sum of any number of the product terms. Basic form of a PLA

Lecture 23: 11/26/2002CS170 Fall PLA Example 1/2 InputsOutputs ABCDEF D = ? (Try to derive D as a sum of products) F = A.B.C Number of rows in AND plane equal to number of inputs Number of columns in AND plane equal the number of distinct products Number of columns in the OR plane is equal to the number of columns in the AND place Number rows in the OR plane is equal to the number of outputs

Lecture 23: 11/26/2002CS170 Fall PLA Example 2/2 Show position of AND and OR gates, instead of drawing gates Dots are used on the intersection of a product term signal line and an input line or an output line when AND/OR gate is required This column denotes the product A.B.C And the product is used as input to OR gate to compute D and is F

Lecture 23: 11/26/2002CS170 Fall Decoders 1/2 n-bit input and 2 n outputs where only one output is true for each input combination The output signal corresponds to the binary value of the n-bit input If the value of input is k, then Outk will be true and all other outputs will be false Example: a 3-bit decoder (a 3-to-8 decoder) See truth table on page B-8 Can you design a gate diagram corresponding to the truth table? (assume a 3-input AND gate)

Lecture 23: 11/26/2002CS170 Fall Decoders 2/2 Gate diagram corresponding to truth table on page B-8

Lecture 23: 11/26/2002CS170 Fall Multiplexors 1/2 Select one of n inputs using a control (The output is one of the inputs based on the control value) 2 data inputs require one selector value (n inputs need  log 2 n  selector inputs) When S = 0, C = A When S = 1, C = B C = (A. NOT(S)) + (B. S) (S1,S0) = (0,0)  Output = A0 (S1,S0) = (0,1)  Output = A1 (S1,S0) = (1,0)  Output = A2 (S1,S0) = (1,1)  Output = A3

Lecture 23: 11/26/2002CS170 Fall Multiplexors 2/2 A selection between 32-bit inputs

Lecture 23: 11/26/2002CS170 Fall Clocks Needed in sequential logic to decide when an element that contains state should be updated A clock has a cycle time, with the clock frequency = 1/cycle time All state changes occur on a clock edge (edge-triggered clocking) Either the rising edge or the falling edge is active, and causes state changes to occur

Lecture 23: 11/26/2002CS170 Fall Memory Elements 1/3 All memory elements store state: The output from any memory element depends both on the inputs and on the value that has been stored inside the memory element Unclocked Memory elements (unclocked latch) S-R latch (set-reset latch) built from a pair of NOR gates When neither S nor R are asserted, the cross-coupled NOR gates store the previous values of Q and NOT(Q) If the output Q is 1, the bottom inverter produces a false output (NOT(Q)), which becomes the input to the top inverter, which produces a true output (Q) and so on If S is asserted, the Output Q will be asserted and NOT(Q) will be deasserted If R is asserted then output NOT(Q) will be asserted and Q will be deasserted.

Lecture 23: 11/26/2002CS170 Fall Memory Elements 2/3 Clocked Memory elements (latches and Flip-flops)  The change of state is triggered by the clock  Clocked latch: the state is changed whenever the appropriate inputs change and the clock is true  Flip-flop: state is changed only on a clock edge (Falling edge, Rising edge) A D latch stores the value of its data input signal in its internal memory Two inputs and two outputs  Inputs: data value to be stored (D) and clock signal ©  Outputs: internal state Q and its complement When clock input C is asserted, the latch is open and Q becomes the value of D When C is deasserted, the latch is closed, the value of Q is whatever value was stored the last time the latch was open Assuming Q is false and D changes first

Lecture 23: 11/26/2002CS170 Fall Memory Elements 3/3 A falling-edge D flip-flop The output is stored when the clock edge occurs The D input is sampled on the clock edge, it must be valid for period of time immediately before and immediately after the clock edge Set-up time: the minimum time that the input must be valid before the clock edge Hold time: the minimum time during which the input must be valid after the clock