CPS3340 COMPUTER ARCHITECTURE Fall Semester, 2013 09/23/2013 Lecture 7: Computer Clock & Memory Elements Instructor: Ashraf Yaseen DEPARTMENT OF MATH &

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

Latches/Flip-Flops. Overview We focuses on sequential circuits – We add memory to the hardware that we’ve already seen Our schedule will be very similar.
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.
Give qualifications of instructors: DAP
Computer Science 210 Computer Organization Clocks and Memory Elements.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
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.
Sequential Logic Computer Organization Ellen Walker Hiram College Figures from Computer Organization and Design 3ed, D.A. Patterson & J.L. Hennessey, Morgan.
EET 1131 Unit 10 Flip-Flops and Registers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
1 The Basic Memory Element - The Flip-Flop Up until know we have looked upon memory elements as black boxes. The basic memory element is called the flip-flop.
1  1998 Morgan Kaufmann Publishers Chapter Five The Processor: Datapath and Control.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Overview Logic Combinational Logic Sequential Logic Storage Devices SR Flip-Flops D Flip Flops JK Flip Flops Registers Addressing Computer Memory.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Chapter Five The Processor: Datapath and Control.
A clocked synchronous state-machine changes state only when a triggering edge or “tick” occurs on the clock signal. ReturnNext  “State-machine”: is a.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
The Processor Andreas Klappenecker CPSC321 Computer Architecture.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
1 CSE370, Lecture 14 Lecture 14 u Logistics n Midterm 1: Average 90/100. Well done! n Midterm solutions online n HW5 due date delayed until this Friday.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
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
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
Computer Architecture Lecture 4 Sequential Circuits Ralph Grishman September 2015 NYU.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /3/2013 Lecture 9: Memory Unit Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL.
Feb. 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 12: State Elements, Registers, and Memory * Jeremy R. Johnson Mon. Feb.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Sequential logic circuits
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.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
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 5. Sequential Logic 1 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System Education & Research.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
July 2, 2001Systems Architecture I1 Systems Architecture II (CS 282) Lab 3: State Elements, Registers, and Memory * Jeremy R. Johnson Monday July 2, 2001.
07/11/2005 Register File Design and Memory Design Presentation E CSE : Introduction to Computer Architecture Slides by Gojko Babić.
Lecture 23: 11/26/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
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.
Computer Science 210 Computer Organization
Lecture 4. Sequential Logic #1
Computer Architecture & Operations I
Lecture 10 Flip-Flops/Latches
Computer Architecture & Operations I
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Chapter #6: Sequential Logic Design
Computer Architecture & Operations I
Morgan Kaufmann Publishers
Appendix B The Basics of Logic Design
Computer Science 210 Computer Organization
Computer Architecture & Operations I
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Sequential logic circuits
Computer Science 210 Computer Organization
Elec 2607 Digital Switching Circuits
Sequential Logic.
Clocks A clock is a free-running signal with a cycle time.
Presentation transcript:

CPS3340 COMPUTER ARCHITECTURE Fall Semester, /23/2013 Lecture 7: Computer Clock & Memory Elements Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL STATE UNIVERSITY, WILBERFORCE, OH 1

Review  Last Class  ALU  This Class  Computer Clock  Memory Elements  Next Class  Memory Unit  Error Detection and Correction 2

Computer Clocks  CPU clock  Generated by an oscillator crystal  Produce a fixed waveform  Clock rate of a CPU is determined by the frequency of the oscillator crystal  Clocks are needed in sequential logic to decide when an element that contains state should be updated. 3

Clock Cycle  Clock cycle time (clock period)  Two portions Clock is high Clock is low  Edge-triggered clocking  All state changes occur on a clock edge 4

State Element and Valid State  State Element  A memory element  Signals written into state elements must be valid when the active clock edge occurs  Valid means stable (not changing) Will not change again until the inputs change  Synchronous System  A memory system that employs clocks and where data signals are read only when the clock indicates that the signal values are stable 5

 Inputs to a combinational logic block from a state element, and the outputs are written into a state element  Clock edge determines when the state elements are updated 6

Read and Write in one cycle  Edge-triggered methodology allows a state element to be read and written in the same clock cycle  Read the value of a state element  Send it through some combinational logic Value does not change during the clock cycle  Write it back to the same state element  All in one cycle 7

Memory Elements  Memory Elements  Store States  Output depends on The inputs, and The value stored in the memory element  Elements  Flip-Flops, Latches  Registers & Register Files  SRAMS, DRAMS 8

Set-Reset Latch (S-R Latch)  A pair of cross-coupled NOR gates  Unclocked Do not have a clock input  Can store an internal value Q represent the current state 9

S-R Latch (Cont.)  S=0 and R=0  NOR gates are equivalent to inverters  Previous States are stored  S=1 and R=0  Q=1 and ~Q=0  S=0 and R=1  Q=0 and ~Q=1  S=1 and R=1  Oscillated, metastable 10

Flip-flops & Latches  Flip-flop:  A memory element for which the output is equal to the value of the stored state inside the element and for which the internal state is changed only on a clock edge.  Latch:  state is changed whenever the appropriate inputs change and the clock is asserted D-Latch (D-Flip-flop) Clock input C Data input D Flip-flops and latches are the simplest memory elements 11

 When the clock input C is a sserted, the latch is said to be open,  the value of the output (Q) becomes the value of the input D.  When the clock input C is deasserted, the latch is said to be closed,  the value of the out put (Q) is whatever value was stored the last time the latch was open 12

Operation of a D-Latch  Operation of a D latch, assuming the output is initially deasserted. When the clock, C, is asserted, the latch is open and the Q output immediately assumes the value of the D input 13

Difference btw. Latch and Flip-flop  Latch  Asynchronous Output changes soon after input changes when the clock is asserted  Flip-flop  Synchronous Output changes at the clock edge 14

More on D-Latch  Q changes as D changes when clock is up  Not really edge-triggered 15

D Flip Flop  D Flip Flop with a Falling-Edge Trigger The first latch, called the master, is open and follows the input D when the clock input, C, is asserted. When the clock input, C, falls, the first latch is closed, but the second latch, called the slave, is open and gets its input from the output of the master latch. 16

Operation of D Flip Flop  D Flip Flop with a Falling Edge Trigger When the clock input (C) changes from asserted to deasserted, the Q output stores the value of the D input. 17

Setup Time and Hold Time  The input must be stable for a period of time before and after the clock edge  Setup Time The minimum time the signal must be stable before clock edge  Hold Time The minimum time the signal must be stable after clock edge Usually very small 18

Register Files  A register file consists of a set of registers that can be read and written by supplying a register number  Built from an array of D Flip-Flops  A decoder is used to select a register in the register file A register file with two read ports and one write port has five inputs and two outputs 19

Reading Registers  Multiplexor  Select data from the specific register 20

Writing to a register  Write Signal  Specify a write operation to the register  Decoder  Specify which register to write  Register Data  Data to write to the register 21

Register Files  Register Files  Can be used to build small memory  Too costly to build large amount of memory  Large Scale Memory  Static random access memories (SRAM)  Dynamic random access memories (DRAM) 22

Summary  Computer Clock  Rising Edge and Falling Edge  Edge Triggered Clocking  Memory Elements  S-R Latch  Flip-Flop  Register File 23

What I want you to do  Review Appendix C 24