Computer Architecture & Operations I

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

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.
Give qualifications of instructors: DAP
Computer Science 210 Computer Organization Clocks and Memory Elements.
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /23/2013 Lecture 7: Computer Clock & Memory Elements Instructor: Ashraf Yaseen DEPARTMENT OF MATH &
Sequential Logic Computer Organization Ellen Walker Hiram College Figures from Computer Organization and Design 3ed, D.A. Patterson & J.L. Hennessey, Morgan.
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
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.
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.
Computer Architecture Lecture 4 Sequential Circuits Ralph Grishman September 2015 NYU.
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.
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.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
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.
Appendix B The Basics of Logic Design
Appendix B The Basics of Logic Design
Computer Science 210 Computer Organization
Lecture 4. Sequential Logic #1
Lecture 3. Lateches, Flip Flops, and Memory
LATCHES AND FLIP-FLOPS
Computer Architecture & Operations I
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Class Exercise 1B.
Chapter #6: Sequential Logic Design
Chapter 7 Designing Sequential Logic Circuits Rev 1.0: 05/11/03
Flip-Flops and Related Devices
Clocks A clock is a free-running signal with a cycle time.
Computer Organization
Computer Architecture & Operations I
Morgan Kaufmann Publishers
Lecture 8 Dr. Nermi Hamza.
Learning Outcome By the end of this chapter, students are expected to refresh their knowledge on sequential logic related to HDL.
Flip Flops.
Appendix B The Basics of Logic Design
Flip Flops.
Latches, Flip-Flops and Registers
Computer Science 210 Computer Organization
Computer Architecture & Operations I
Processor (I).
Introduction to Sequential Logic Design
Latches and Flip-flops
Yee-Wing Hsieh Steve Jacobs
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Sequential logic circuits
Sequential Circuits: Latches
Computer Science 210 Computer Organization
Sequential Circuits: Latches
Elec 2607 Digital Switching Circuits
CSE 370 – Winter Sequential Logic - 1
The Processor Lecture 3.1: Introduction & Logic Design Conventions
Sequential Circuits: Latches
Combinational Circuits
Sequential Logic.
SEQUENTIAL CIRCUITS __________________________________________________
4-Bit Register Built using D flip-flops:
Clocks A clock is a free-running signal with a cycle time.
Presentation transcript:

Computer Architecture & Operations I Instructor: Ryan Florin

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

Combinational Logic and Sequential Logic A logic system whose blocks do not contain memory and hence compute the same output given the same input NOTE: So far EVERYTHING has been combinational logic. 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 Made up of combinational logic and some memory

State Element and Valid State 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

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

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

Memory Elements Memory Elements 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

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

S-R Latch (Cont.) S=0 and R=0 S=1 and R=0 S=0 and R=1 S=1 and R=1 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

Flip-flops D-Latch Clock input C Data input D

Operation of a D-Latch

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

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

D Flip Flop D Flip Flop with a Falling-Edge Trigger

Operation of D Flip Flop D Flip Flop with a Falling Edge Trigger

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

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

Reading Registers Multiplexor Select data from the specific register

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

Register Files Register Files Large Scale Memory 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)

What I want you to do Review Appendix B