1 Memory Hierarchy (I). 2 Outline Random-Access Memory (RAM) Nonvolatile Memory Disk Storage Suggested Reading: 6.1.

Slides:



Advertisements
Similar presentations
Chapter 5 Internal Memory
Advertisements

Computer Organization and Architecture
Fabián E. Bustamante, Spring 2007 The Memory Hierarchy Today Storage technologies and trends Locality of reference Caching in the memory hierarchy Next.
LOGO.  Concept:  Is read-only memory.  Do not lose data when power is lost.  ROM memory is used to produce chips with integrated.
What is memory? Memory is used to store information within a computer, either programs or data. Programs and data cannot be used directly from a disk or.
Registers –Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Chapter 5 Internal Memory
The Memory Hierarchy Apr 26, 2006 Topics Storage technologies and trends Locality of reference Caching in the memory hierarchy CS213.
The Memory Hierarchy Topics Storage technologies and trends Locality of reference Caching in the memory hierarchy CS213.
IT Systems Memory EN230-1 Justin Champion C208 –
F1020/F1031 COMPUTER HARDWARE MEMORY. Read-only Memory (ROM) Basic instructions for booting the computer and loading the operating system are stored in.
The Memory Hierarchy Topics Storage technologies Capacity and latency trends The hierarchy Systems I.
CompE 460 Real-Time and Embedded Systems Lecture 5 – Memory Technologies.
Computer Architecture Part III-A: Memory. A Quote on Memory “With 1 MB RAM, we had a memory capacity which will NEVER be fully utilized” - Bill Gates.
Chapter 4 ระบบหน่วยความจำ The Memory System
Memory Hierarchy.
Faculty of Information Technology Department of Computer Science Computer Organization and Assembly Language Chapter 5 Internal Memory.
Basic concepts Maximum size of the memory depends on the addressing scheme: 16-bit computer generates 16-bit addresses and can address up to 216 memory.
Discovering Computers 2012: Chapter 4
Memory Hierarchy 1 Computer Organization II © CS:APP & McQuain Cache Memory and Performance Many of the following slides are taken with.
Main Memory -Victor Frandsen. Overview Types of Memory The CPU & Main Memory Types of RAM Properties of DRAM Types of DRAM & Enhanced DRAM Error Detection.
Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.
Chapter 5 Internal Memory. Semiconductor Memory Types.
Computer Architecture CST 250 MEMORY ARCHITECTURE Prepared by:Omar Hirzallah.
Asynchronous vs. Synchronous Counters Ripple Counters Deceptively attractive alternative to synchronous design style State transitions are not sharp! Can.
Chapter 6: Internal Memory Computer Architecture Chapter 6 : Internal Memory Memory Processor Input/Output.
Chapter 4: MEMORY Internal Memory.
It is the work space for the CPU Temporary storage for data/programs the CPU is working with. Started as a collection of IC’s on Motherboard. Two main.
Memory Cell Operation.
The Memory Hierarchy Topics Storage technologies and trends Locality of reference Caching in the memory hierarchy.
Memory Hierarchy Registers Cache Main Memory Fixed Disk (virtual memory) Tape Floppy Zip CD-ROM CD-RWR Cost/Bit Access/Speed Capacity.
Computer Architecture Lecture 24 Fasih ur Rehman.
The Memory Hierarchy Topics Storage technologies and trends Locality of reference Caching in the memory hierarchy.
MEMORY ORGANIZATION - Memory hierarchy - Main memory - Auxiliary memory - Cache memory.
The Memory Hierarchy Topics Storage technologies and trends Locality of reference Caching in the memory hierarchy.
The Memory Hierarchy Feb. 20, 2003 Topics Storage technologies and trends Locality of reference Caching in the memory hierarchy class12.ppt “The.
Semiconductor Memory Types
The Memory Hierarchy Topics Storage technologies and trends Locality of reference Caching in the memory hierarchy mem1.ppt CS 105 Tour of the Black Holes.
Computer Architecture Chapter (5): Internal Memory
The Memory Hierarchy January 21, 2002 Topics Storage technologies and trends Locality of reference Caching in the memory hierarchy Reading: 6.1 – 6.4 Problems:
Advanced Computer Architecture CS 704 Advanced Computer Architecture Lecture 25 Memory Hierarchy Design (Storage Technologies Trends and Caching) Prof.
The Memory Hierarchy Topics Storage technologies and trends Locality of reference Caching in the memory hierarchy mem1.ppt CS 105 Tour of the Black Holes.
The Memory Hierarchy Topics Storage technologies and trends Locality of reference Caching in the memory hierarchy mem1.ppt CS 105 Tour of the Black Holes.
The Memory Hierarchy Oct 4, 2001 Topics Storage technologies and trends Locality of reference Caching in the memory hierarchy class12.ppt “The course.
Chapter 5 Internal Memory
The Memory Hierarchy Topics Storage technologies and trends
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
Memory Hierarchy (I).
William Stallings Computer Organization and Architecture 8th Edition
שמות מאפיינים ומטרות של זיכרונות ROM - ו RAM
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
Memory Hierarchy (I).
MICROPROCESSOR MEMORY ORGANIZATION
Chapter 4: MEMORY.
DRAM Hwansoo Han.
William Stallings Computer Organization and Architecture 8th Edition
Cache Memory and Performance
Presentation transcript:

1 Memory Hierarchy (I)

2 Outline Random-Access Memory (RAM) Nonvolatile Memory Disk Storage Suggested Reading: 6.1

3 Random-Access Memory (RAM) Key features –RAM is packaged as a chip. –Basic storage unit is a cell (one bit per cell). –Multiple RAM chips form a memory.

4 Random-Access Memory (RAM) Static RAM (SRAM) –Each cell stores bit with a six-transistor circuit. –Retains value indefinitely, as long as it is kept powered. –Relatively insensitive to disturbances such as electrical noise. –Faster and more expensive than DRAM.

5 Random-Access Memory (RAM)

6 Dynamic RAM (DRAM) –Each cell stores bit with a capacitor and transistor. –Value must be refreshed every ms. –Sensitive to disturbances. –Slower and cheaper than SRAM.

7 SRAM vs DRAM summary Tran.Access per bit timePersist?Sensitive?CostApplications SRAM61XYesNo100xcache memories DRAM110XNoYes1XMain memories, frame buffers

8 Conventional DRAM organization d x w DRAM: –dw total bits organized as d supercells of size w bits cols rows internal row buffer 16 x 8 DRAM chip addr data supercell (2,1) 2 bits / 8 bits / memory controller (to CPU) pins

9 Reading DRAM supercell (2,1) Step 1(a): Row access strobe (RAS) selects row 2. Step 1(b): Row 2 copied from DRAM array to row buffer. RAS=2 cols rows internal row buffer 16 x 8 DRAM chip row 2 addr data 2/2/ 8/8/ memory controller

10 Reading DRAM supercell (2,1) Step 2(a): Column access strobe (CAS) selects column 1. Step 2(b): Supercell (2,1) copied from buffer to data lines, and eventually back to the CPU. supercell (2,1) cols rows internal row buffer 16 x 8 DRAM chip CAS=1 addr data 2/2/ 8/8/ memory controller

11 Memory modules : supercell (i,j) bit doubleword at main memory address A addr (row = i, col = j) data 64 MB memory module consisting of eight 8Mx8 DRAMs Memory controller bits 0-7 DRAM 7 DRAM 0 bits 8-15 bits bits bits bits bits bits bit doubleword to CPU chip

12 Enhanced DRAMs All enhanced DRAMs are built around the conventional DRAM core Fast page mode DRAM (FPM DRAM) –Access contents of row with [RAS, CAS, CAS, CAS, CAS] instead of [(RAS,CAS), (RAS,CAS), (RAS,CAS), (RAS,CAS)].

13 Enhanced DRAMs Extended data out DRAM (EDO DRAM) –Enhanced FPM DRAM with more closely spaced CAS signals. Synchronous DRAM (SDRAM) –Driven with rising clock edge instead of asynchronous control signals

14 Enhanced DRAMs Double data-rate synchronous DRAM (DDR SDRAM) –Enhancement of SDRAM that uses both clock edges as control signals. –Different sizes of small prefetch buffers that increase the effective bandwidth –DDR (2 bits), DDR2 (4 bits), and DDR3 (8 bits)

15 Enhanced DRAMs Rambus DRAM(RDRAM) –An alternative proprietary technology with a higher maximum bandwidth than DDR SDRAM Video RAM (VRAM) –Like FPM DRAM, but output is produced by shifting row buffer –Dual ported (allows concurrent reads and writes)

16 Nonvolatile memories DRAM and SRAM are volatile memories –Lose information if powered off. Nonvolatile memories retain value even if powered off –Generic name is read-only memory (ROM). –Misleading because some ROMs can be read and modified.

17 Types of ROMs Programmable ROM (PROM) –Write once Erasable programmable ROM (EPROM) –Erase by ultraviolet light –Write by a special device –About 1000 times Electrically erasable PROM (EEPROM) –Reprogramming in-place on printed circuit cards Flash memory –Based on EEPROM

18 Nonvolatile memories Firmware –Program stored in a ROM –BIOS (basic input/output system) Boot time code a small set of primitive input and output functions –graphics cards, disk controllers Translate I/O (input/output) requests from the CPU

19 Bus Structure Connecting CPU and memory A bus is a collection of parallel wires that carry address, data, and control signals Buses are typically shared by multiple devices

20 Bus Structure Connecting CPU and memory main memory I/O bridge bus interface ALU register file CPU chip system busmemory bus

21 Memory read transaction (1) CPU places address A on the memory bus ALU register file bus interface A 0 A x main memory I/O bridge %eax Load operation: movl A, %eax

22 Memory read transaction (2) Main memory reads A from the memory bus, retrieves word x, and places it on the bus. ALU register file bus interface x 0 A x main memory %eax I/O bridge Load operation: movl A, %eax

23 Memory read transaction (3) CPU read word x from the bus and copies it into register %eax. x ALU register file bus interface x main memory 0 A %eax I/O bridge Load operation: movl A, %eax

24 Memory write transaction (1) CPU places address A on bus Main memory reads it and waits for the corresponding data word to arrive.

25 Memory write transaction (1) y ALU register file bus interface A main memory 0 A %eax I/O bridge Store operation: movl %eax, A

26 Memory write transaction (2) CPU places data word y on the bus. y ALU register file bus interface y main memory 0 A %eax I/O bridge Store operation: movl %eax, A

27 Memory write transaction (3) Main memory read data word y from the bus and stores it at address A y ALU register file bus interface y main memory 0 A %eax I/O bridge Store operation: movl %eax, A