ECE468 Computer Organization and Architecture. Memory Hierarchy

Similar documents
Memory Hierarchy Technology. The Big Picture: Where are We Now? The Five Classic Components of a Computer

CSC Memory System. A. A Hierarchy and Driving Forces

CpE 442. Memory System

CS152 Computer Architecture and Engineering Lecture 16: Memory System

CPS101 Computer Organization and Programming Lecture 13: The Memory System. Outline of Today s Lecture. The Big Picture: Where are We Now?

ECE232: Hardware Organization and Design

Recap: Machine Organization

CS152 Computer Architecture and Engineering Lecture 17: Cache System

Memory Hierarchy. Maurizio Palesi. Maurizio Palesi 1

Memory Technologies. Technology Trends

Course Administration

CENG3420 Lecture 08: Memory Organization

14:332:331. Week 13 Basics of Cache

CS 61C: Great Ideas in Computer Architecture. Direct Mapped Caches

CS 61C: Great Ideas in Computer Architecture. The Memory Hierarchy, Fully Associative Caches

ECE7995 (4) Basics of Memory Hierarchy. [Adapted from Mary Jane Irwin s slides (PSU)]

CENG4480 Lecture 09: Memory 1

Memory Hierarchy. Maurizio Palesi. Maurizio Palesi 1

COSC 6385 Computer Architecture. - Memory Hierarchies (I)

LECTURE 10: Improving Memory Access: Direct and Spatial caches

Review: Performance Latency vs. Throughput. Time (seconds/program) is performance measure Instructions Clock cycles Seconds.

Memory Hierarchy, Fully Associative Caches. Instructor: Nick Riasanovsky

EE 4683/5683: COMPUTER ARCHITECTURE

Memory Hierarchy: Caches, Virtual Memory

Memory Hierarchy: Motivation

Modern Computer Architecture

Memory Hierarchy: The motivation

ECE ECE4680

CENG 3420 Computer Organization and Design. Lecture 08: Memory - I. Bei Yu

CSE 431 Computer Architecture Fall Chapter 5A: Exploiting the Memory Hierarchy, Part 1

Pipelining, Instruction Level Parallelism and Memory in Processors. Advanced Topics ICOM 4215 Computer Architecture and Organization Fall 2010

EEC 483 Computer Organization

14:332:331. Week 13 Basics of Cache

Question?! Processor comparison!

Lecture 17 Introduction to Memory Hierarchies" Why it s important " Fundamental lesson(s)" Suggested reading:" (HP Chapter

Speicherarchitektur. Who Cares About the Memory Hierarchy? Technologie-Trends. Speicher-Hierarchie. Referenz-Lokalität. Caches

Chapter 7 Large and Fast: Exploiting Memory Hierarchy. Memory Hierarchy. Locality. Memories: Review

CENG 3420 Computer Organization and Design. Lecture 08: Cache Review. Bei Yu

CMPSC 311- Introduction to Systems Programming Module: Caching

Let!s go back to a course goal... Let!s go back to a course goal... Question? Lecture 22 Introduction to Memory Hierarchies

The Memory Hierarchy & Cache

Memory hierarchy Outline

EECS151/251A Spring 2018 Digital Design and Integrated Circuits. Instructors: John Wawrzynek and Nick Weaver. Lecture 19: Caches EE141

Page 1. Review: Address Segmentation " Review: Address Segmentation " Review: Address Segmentation "

LECTURE 11. Memory Hierarchy

Lecture-14 (Memory Hierarchy) CS422-Spring

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

CISC 662 Graduate Computer Architecture Lecture 16 - Cache and virtual memory review

Donn Morrison Department of Computer Science. TDT4255 Memory hierarchies

CS61C : Machine Structures

Algorithm Performance Factors. Memory Performance of Algorithms. Processor-Memory Performance Gap. Moore s Law. Program Model of Memory I

COEN-4730 Computer Architecture Lecture 3 Review of Caches and Virtual Memory

MEMORY. Objectives. L10 Memory

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

UCB CS61C : Machine Structures

The Memory Hierarchy & Cache The impact of real memory on CPU Performance. Main memory basic properties: Memory Types: DRAM vs.

Algorithm Performance Factors. Memory Performance of Algorithms. Processor-Memory Performance Gap. Moore s Law. Program Model of Memory II

EEC 170 Computer Architecture Fall Cache Introduction Review. Review: The Memory Hierarchy. The Memory Hierarchy: Why Does it Work?

Who Cares About the Memory Hierarchy? Time CS 152 Lec16.6. Performance. Recap

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

Registers. Instruction Memory A L U. Data Memory C O N T R O L M U X A D D A D D. Sh L 2 M U X. Sign Ext M U X ALU CTL INSTRUCTION FETCH

CSF Cache Introduction. [Adapted from Computer Organization and Design, Patterson & Hennessy, 2005]

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

,e-pg PATHSHALA- Computer Science Computer Architecture Module 25 Memory Hierarchy Design - Basics

Basic Memory Hierarchy Principles. Appendix C (Not all will be covered by the lecture; studying the textbook is recommended!)

Welcome to Part 3: Memory Systems and I/O

Textbook: Burdea and Coiffet, Virtual Reality Technology, 2 nd Edition, Wiley, Textbook web site:

Memory. Lecture 22 CS301

MEMORY HIERARCHY DESIGN

Lecture 12: Memory hierarchy & caches

Chapter Seven. Large & Fast: Exploring Memory Hierarchy

The University of Adelaide, School of Computer Science 13 September 2018

Chapter Seven. Memories: Review. Exploiting Memory Hierarchy CACHE MEMORY AND VIRTUAL MEMORY

Memory Hierarchy Y. K. Malaiya

Module 1: Basics and Background Lecture 4: Memory and Disk Accesses. The Lecture Contains: Memory organisation. Memory hierarchy. Disks.

Caches and Memory Hierarchy: Review. UCSB CS240A, Winter 2016

Where Have We Been? Ch. 6 Memory Technology

COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface

CPE 631 Lecture 04: CPU Caches

Memory Hierarchy. ENG3380 Computer Organization and Architecture Cache Memory Part II. Topics. References. Memory Hierarchy

Cache Memory - II. Some of the slides are adopted from David Patterson (UCB)

CSCI-UA.0201 Computer Systems Organization Memory Hierarchy

Caches. Han Wang CS 3410, Spring 2012 Computer Science Cornell University. See P&H 5.1, 5.2 (except writes)

CS61C : Machine Structures

CS162 Operating Systems and Systems Programming Lecture 13. Caches and TLBs. Page 1

Handout 4 Memory Hierarchy

Caches and Memory Hierarchy: Review. UCSB CS240A, Fall 2017

CS 61C: Great Ideas in Computer Architecture (Machine Structures) Caches Part 1

CS162 Operating Systems and Systems Programming Lecture 10 Caches and TLBs"

Lecture 12. Memory Design & Caches, part 2. Christos Kozyrakis Stanford University

CS161 Design and Architecture of Computer Systems. Cache $$$$$

CMSC 611: Advanced Computer Architecture

Chapter 7-1. Large and Fast: Exploiting Memory Hierarchy (part I: cache) 臺大電機系吳安宇教授. V1 11/24/2004 V2 12/01/2004 V3 12/08/2004 (minor)

Lctures 33: Cache Memory - I. Some of the slides are adopted from David Patterson (UCB)

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Computer Architecture ECE 568/668

The Memory Hierarchy & Cache Review of Memory Hierarchy & Cache Basics (from 350):

Performance! (1/latency)! 1000! 100! 10! Capacity Access Time Cost. CPU Registers 100s Bytes <10s ns. Cache K Bytes ns 1-0.

Memory hierarchy and cache

CS3350B Computer Architecture

Chapter 6 Memory 11/3/2015. Chapter 6 Objectives. 6.2 Types of Memory. 6.1 Introduction

Transcription:

ECE468 Computer Organization and Architecture Hierarchy ECE468 memory.1 The Big Picture: Where are We Now? The Five Classic Components of a Computer Processor Control Input Datapath Output Today s Topic: System ECE468 memory.2

Who Cares About the Hierarchy? Processor-DRAM Gap (latency) Performance 1000 100 10 1 Moore s Law µproc CPU 60%/yr. (2X/1.5yr) Processor- Performance Gap: (grows 50% / year) DRAM DRAM 9%/yr. (2X/10 yrs) 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 ECE468 memory.3 Time An Expanded View of the System Processor Control Datapath Speed: Size: Cost: Fastest Smallest Highest Slowest Biggest Lowest ECE468 memory.4

Hierarchy: Principles of Operation At any given time, data is copied between only 2 adjacent levels: Block: Upper Level: the one closer to the processor - Smaller, faster, and uses more expensive technology Lower Level: the one further away from the processor - Bigger, slower, and uses less expensive technology The minimum unit of information that can either be present or not present in the two level hierarchy To Processor From Processor Upper Level Blk X Lower Level Blk Y ECE468 memory.5 Hierarchy: Terminology Hit: data appears in some block in the upper level (example: Block X) Hit Rate: the fraction of memory access found in the upper level Hit Time: Time to access the upper level which consists of RAM access time + Time to determine hit/miss Miss: data needs to be retrieve from a block in the lower level (Block Y) Miss Rate = 1 - (Hit Rate) Miss Penalty: Time to replace a block in the upper level + Time to deliver the block the processor Hit Time << Miss Penalty To Processor From Processor Upper Level Blk X Lower Level Blk Y ECE468 memory.6

Hierarchy: How Does it Work? Temporal Locality (Locality in Time): If an item is referenced, it will tend to be referenced again soon. Keep more recently accessed data items closer to the processor Spatial Locality (Locality in Space): If an item is referenced, items whose addresses are close by tend to be referenced soon. Move blocks consists of contiguous words to the upper levels To Processor From Processor Upper Level Blk X Lower Level Blk Y ECE468 memory.7 Hierarchy of a Modern Computer System By taking advantage of the principle of locality: Present the user with as much memory as is available in the cheapest technology. Provide access at the speed offered by the fastest technology. Processor Datapath Control Registers On-Chip Second Level (SRAM) Main (DRAM) Secondary Storage (Disk) Speed (ns): 1s 10s 100s Size (bytes): 100s Ks Ms 10,000,000s (10s ms) Gs ECE468 memory.8

Hierarchy Technology Random Access: Random is good: access time is the same for all locations DRAM: Dynamic Random Access - High density, low power, cheap, slow - Dynamic: need to be refreshed regularly SRAM: Static Random Access - Low density, high power, expensive, fast - Static: content will last forever Non-so-random Access Technology: Access time varies from location to location and from time to time Examples: Disk, tape drive, CDROM The next two lectures will concentrate on random access technology The Main : DRAMs s: SRAMs ECE468 memory.9 Technology Trends Capacity Speed (latency) Logic: 2x in 3 years 2x in 3 years DRAM: 4x in 3 years 2x in 10 years Disk: 4x in 3 years 2x in 10 years DRAM Year Size Cycle Time 1000:1! 2:1! 1980 64 Kb 250 ns 1983 256 Kb 220 ns 1986 1 Mb 190 ns 1989 4 Mb 165 ns 1992 16 Mb 145 ns 1995 64 Mb 120 ns ECE468 memory.10

SPARCstation 20 s System Overview Controller Bus (SIMM Bus) 128-bit wide datapath Processor Bus (Mbus) 64-bit wide Module 7 External Module 6 Module 5 Module 4 Module 3 Module 2 Processor Module (Mbus Module) Module 1 SuperSPARC Processor Instruction Data Register File Module 0 ECE468 memory.11 SPARCstation 20 s Module Supports a wide range of sizes: Smallest 4 MB: 16 2Mb DRAM chips, 8 KB of Page Mode SRAM Biggest: 64 MB: 32 16Mb chips, 16 KB of Page Mode SRAM DRAM Chip 15 512 cols DRAM Chip 0 256K x 8 = 2 MB 512 rows 256K x 8 = 2 MB 8 bits 512 x 8 SRAM bits<127:0> 512 x 8 SRAM bits<7:0> Bus<127:0> ECE468 memory.12

Summary: Two Different Types of Locality: Temporal Locality (Locality in Time): If an item is referenced, it will tend to be referenced again soon. Spatial Locality (Locality in Space): If an item is referenced, items whose addresses are close by tend to be referenced soon. By taking advantage of the principle of locality: Present the user with as much memory as is available in the cheapest technology. Provide access at the speed offered by the fastest technology. DRAM is slow but cheap and dense: Good choice for presenting the user with a BIG memory system SRAM is fast but expensive and not very dense: Good choice for providing the user FAST access time. ECE468 memory.13