Morgan Kaufmann Publishers

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

Lecture 13: Sequential Circuits
5-1 Memory System. Logical Memory Map. Each location size is one byte (Byte Addressable) Logical Memory Map. Each location size is one byte (Byte Addressable)
Computer Science 210 Computer Organization Clocks and Memory Elements.
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.
ENGIN112 L30: Random Access Memory November 14, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 30 Random Access Memory (RAM)
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.
1 Lecture 16B Memories. 2 Memories in General Computers have mostly RAM ROM (or equivalent) needed to boot ROM is in same class as Programmable Logic.
Chapter 3 Continued Logic Gates Logic Chips Combinational Logic Sequential Logic Flip Flops Registers Memory Timing State Machines.
Overview Logic Combinational Logic Sequential Logic Storage Devices SR Flip-Flops D Flip Flops JK Flip Flops Registers Addressing Computer Memory.
Overview Recall Combinational Logic Sequential Logic Storage Devices
Lecture 4: Computer Memory
CS 151 Digital Systems Design Lecture 30 Random Access Memory (RAM)
Chapter Five The Processor: Datapath and Control.
Revision Mid 2 Prof. Sin-Min Lee Department of Computer Science.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
1 Lecture 16B Memories. 2 Memories in General RAM - the predominant memory ROM (or equivalent) needed to boot ROM is in same class as Programmable Logic.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
Memory System Unit-IV 4/24/2017 Unit-4 : Memory System.
Memory Intro Computer Organization 1 Computer Science Dept Va Tech March 2006 ©2006 McQuain & Ribbens Built using D flip-flops: 4-Bit Register Clock input.
Digital Logic Design Instructor: Kasım Sinan YILDIRIM
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
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.
COMP203/NWEN Memory Technologies 0 Plan for Memory Technologies Topic Static RAM (SRAM) Dynamic RAM (DRAM) Memory Hierarchy DRAM Accelerating Techniques.
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.
Latches, Flip Flops, and Memory ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin – Madison.
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 3. Lateches, Flip Flops, and Memory
Digital Logic Design Alex Bronstein Lecture 3: Memory and Buses.
The Basics of Logic Design Patterson & Hennessy, © 2005 Elsevier, Inc.
Computer Architecture & Operations I
LATCHES AND FLIP-FLOPS
Computer Architecture & Operations I
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Memories.
Class Exercise 1B.
Computer Architecture & Operations I
Lecture 8 Dr. Nermi Hamza.
Appendix B The Basics of Logic Design
Exam 2 Review Two’s Complement Arithmetic Ripple carry ALU logic and performance Look-ahead techniques, performance and equations Basic multiplication.
Basics of digital systems
6. Sequential circuits (v2)
Computer Science 210 Computer Organization
Computer Architecture & Operations I
Processor (I).
Chapter 11 Sequential Circuits.
Latches and Flip-flops
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Sequential Circuits: Latches
Hakim Weatherspoon CS 3410 Computer Science Cornell University
Computer Science 210 Computer Organization
Digital Logic & Design Dr. Waseem Ikram Lecture 40.
CSE 370 – Winter Sequential Logic - 1
Lecture 15 Logistics Last lecture Today HW4 is due today
The Processor Lecture 3.1: Introduction & Logic Design Conventions
Sequential Circuits: Latches
Sequential Logic.
Levels in Processor Design
4-Bit Register Built using D flip-flops:
Clocks A clock is a free-running signal with a cycle time.
Presentation transcript:

Morgan Kaufmann Publishers July 4, 2018 Memory Elements (B.8) Instructor: Robert Utterback Lecture 11 Chapter 1 — Computer Abstractions and Technology

Logistics HW 2 went out on Wednesday (see email) Start early! Come to office hours/tutoring

Four 4-bit ALUs with Carry Lookahead to form a 16-bit adder Morgan Kaufmann Publishers July 4, 2018 Four 4-bit ALUs with Carry Lookahead to form a 16-bit adder Given some bits a_i and b_i, how to compute p_i and g_i? What are the steps to do this two-layer carry lookahead adder? Chapter 1 — Computer Abstractions and Technology

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

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

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) Morgan Kaufmann Publishers July 4, 2018 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 Draw a truth table for this (inputs are Q_old, ~Q_old, R and S, outputs are Q_new and ~Q_new) Chapter 1 — Computer Abstractions and Technology

S-R Latch (Cont.) S=0 and R=0 S=1 and R=0 S=0 and R=1 S=1 and R=1 Previous State is 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 Q=0 and ~Q=0 ???

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

Operation of a D-Latch

Morgan Kaufmann Publishers July 4, 2018 More on D-Latch Q changes as D changes when clock is up Not really edge-triggered Want edge-triggered to make sure everything is synchronized Chapter 1 — Computer Abstractions and Technology

Difference btw. Latch and Flip-flop Morgan Kaufmann Publishers July 4, 2018 Difference btw. Latch and Flip-flop Latch Asynchronous Output changes soon after input changes Flip-flop Synchronous Output changes at the clock edge Output changes soon after input changes [when the clock is asserted (?)] Chapter 1 — Computer Abstractions and Technology

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)

SRAMs SRAM Example: 8Mx8 SRAM Integrated circuits of memory arrays A single access port Either read or write Fixed access time to any datum Height Number of addressable locations Width Number of output bits per unit Example: 8Mx8 SRAM 8M = 223, 23 address lines 8 output bits

2Mx16 SRAM 21-bit address line 16-bit data input/output

Implementation of Large SRAM Register File Use Multiplexor 32x1 Multiplexor Large SRAM Impractical to use a large multiplexor like 64kx1 Try to remember the implementation of a two input multiplexor Solution A more efficient implementation of Multiplexor Shared output line (bit line) Allow multiple sources to drive a single output line

Small SRAM (4 x 2) Chapter 1 — Computer Abstractions and Technology — 24

Three State Buffer Two inputs A single output A data signal An output enable (output select) A single output Three states Output enable = 1 Asserted (1) state Deasserted (0) state Output enable = 0 High Impedance state Allow the another three-state buffer with output enable =1 to determine the output

Multiplexor using Three-State Buffers Two inputs A data signal An output enable (output select) A single output Three states Output enable = 1 Asserted (1) state Deasserted (0) state Output enable = 0 High Impedance state Allow the another three-state buffer with output enable =1 to determine the output

Organization of a 4M SRAM Array of 8 Modules – Each for a bit Addr 21-10 Use a 12 to 4096 decoder Select an array of1024 bits out of 4K 1024 bits Addr 9-0 Select 1 bit from the 1024 bits as an output bit

DRAM SRAM DRAM Requires 4-6 transistors per bit Fast But costly Requires 1 transistor per bit Charge stored in a capacitor Needs to be refreshed periodically Slower than SRAM But less expensive

Organization of a 4M DRAM Addr 11-21 Select 1 row from 2048 rows Addr 10-0 Select 1 bit from the 2048 bits as an output bit Column Latches Store the selected output from 2048x2048 array temporally

DRAM

SRAM and DRAM SRAM DRAM Fast but costly Small amount Used for Computer Cache DRAM Slow but less costly Large amount Used for Computer Main Memory

What I want you to do Finish/Review Appendix B.1-3, B.5-B.9 Work on HW 2 Study for exam 1!