









































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
The Assembler Programming and Computer Organization, is very helpful series of lecture slides, which made programming an easy task. The major points in these laboratory assignment are:Memory, Hierarchical Memory Organization, Level of Memory, System Performance, Cache Memory, Virtual Memory, Memory Segmentation, Paging and Address Translation, Types of Memory, Memory Address, Core Memory
Typology: Slides
1 / 81
This page cannot be seen from the preview
Don't miss anything!
6.3 The Memory Hierarchy
hierarchical fashion.
is accessed through the data bus.
further from the CPU.
Control
Datapath
Secondary Storage (Disk)
Processor
Registers
Main Memory (DRAM)
Second Level Cache (SRAM)
On-Chip Cache
Tertiary Storage Third (Tape) Level Cache (SRAM)
6.3 The Memory Hierarchy
Let’s look at numbers for an Intel Pentium 4, 3.2 GHz Server.
Component Access Speed
(Time for data to be returned)
Size of Component
Registers 1 cycle = 0.3 nanoseconds
8 registers
L1 Cache 3 cycles = 1 nanoseconds
Separate Data and Instruction Caches: 16 Kbytes each
L2 Cache 20 cycles = 7 nanoseconds
256 Kbytes, 8-way set associative
L3 Cache 40 cycles = 13 nanoseconds
4096 Kbytes, 8-way set associative
Memory 300 cycles = 100 nanoseconds
16 Gigabytes
Disk 30,000,000 cycles = 10 milliseconds
400 Gigabytes
Why Does It Work? Locality!
Keep most recently accessed data items closer to the processor
Move blocks consisting of contiguous words to the upper levels
Lower Level Upper Level Memory Memory
To Processor
From Processor
Blk X Blk Y
(^0) Memory Address 2 n (^) – 1
Probability of reference
6.3 The Memory Hierarchy
6.3 The Memory Hierarchy
“Lower Level” “Upper Level” Memory Memory
To Processor
From Processor
Blk X Blk Y
SDRAM; Random Access Memory
DDR2-SDRAM maintains the same core functions, transferring 64 bits of data twice every clock cycle for an effective transfer rate twice that of the front-side bus (FSB) of a computer system, and an effective bandwidth equal to its speed x 8.
6.3 The Memory Hierarchy
Random Access Memory
1 USB connector 2 USB mass storage controller device 3 Test points 4 Flash memory chip 5 Crystal oscillator 6 LED 7 Write-protect switch 8 Space for second flash memory chip
6.3 The Memory Hierarchy
A type of EEPROM.
Non-volatile – doesn’t require power to hold data.
Data is written in blocks - not byte accessible. Great for disk-like devices requiring 4096 bytes to be read/written; not good for Random Access Memory.
Limited to 1,000,000 cycles – and blocks can go bad.
The controller can do bad block remapping and error checking.
The controller can do wear leveling – moving blocks around so that no one area on the chip has excessive wear.
6.4 Cache Memory
Motivation:
When I run a tool that looks at Memory hierarchy on a
machine, here’s what I get:
So what do all these
words mean?
6.4 Cache Memory
6.4 Cache Memory
What could happen if there were no valid bit?
6.4 Cache Memory