






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







F13 – 2 –
Datorarkitektur 2009
See Lecture 7B CA2 page 12See Lecture 7B CA2 page 12
F13 – 3 –
Datorarkitektur 2009
F13 – 4 –
Datorarkitektur 2009
cols
rows
internal row buffer
16 x 8 DRAM chip
addr data
supercell
2 bits
/ 8 bits
/
memory controller
(to CPU)
Datorarkitektur 2009
cols
rows
internal row buffer
16 x 8 DRAM chip
addr data
2 / 8 /
memorycontroller
F13 – 6 –
Datorarkitektur 2009
internal buffer
cols
rows
internal row buffer
16 x 8 DRAM chip
addr data
2 / 8 /
memorycontroller
supercell
supercell
Datorarkitektur 2009
: supercell (i,j)
64 MBmemory moduleconsisting ofeight 8Mx8 DRAMs
addr (row = i, col
= j)
Memorycontroller
DRAM 7
DRAM 0
0
31
7 8
15 16
23 24
32
63
39 40
47 48
55 56
64-bit doubleword at main memory address
bits0-7^ A
bits8-
bits16-
bits24-
bits32-
bits40-
bits48-
bits56-
64-bit doubleword
0
31
7 8
15 16
23 24
32
63
39 40
47 48
55 56
64-bit doubleword at main memory address
F13 – 8 –
Datorarkitektur 2009
Datorarkitektur 2009
x
register file
bus interface
x
main memory
%eax
I/O bridge
Load operation:
movl
A, %eax
F13 – 14 –
Datorarkitektur 2009
y
register file
bus interface
main memory
%eax
I/O bridge
Store operation:
movl
%eax,
Datorarkitektur 2009
y
register file
bus interface
y
main memory
%eax
I/O bridge
Store operation:
movl %eax, A
F13 – 16 –
Datorarkitektur 2009
y
register file
bus interface
y
main memory
%eax
I/O bridge
Store operation:
movl
%eax,
Datorarkitektur 2009
surface^ spindle
tracks
track
k
sectors
gaps
F13 – 18 –
Datorarkitektur 2009
surface 0 surface 1 surface 2 surface 3 surface 4 surface 5
cylinder
k
spindle
platter 0 platter 1 platter 2
Datorarkitektur 2009
F13 – 20 –
Datorarkitektur 2009
Datorarkitektur 2009
F13 – 26 –
Datorarkitektur 2009
main memory
bridge
bus interface
register file
CPU chip
system bus
memory bus
disk
controller
graphicsadapter
controller
mouse
keyboard
monitor
disk
I/O bus
Expansion slots forother devices suchas network adapters.
Datorarkitektur 2009
main memory
register file
CPU chip
disk
controller
graphicsadapter
controller
mouse
keyboard
monitor
disk
I/O bus
bus interface
F13 – 28 –
Datorarkitektur 2009
main memory
register file
CPU chip
disk
controller
graphicsadapter
controller
mouse
keyboard
monitor
disk
I/O bus
bus interface
Datorarkitektur 2009
main memory
register file
CPU chip
disk
controller
graphicsadapter
controller
mouse
keyboard
monitor
disk
I/O bus
bus interface
F13 – 30 –
Datorarkitektur 2009
metric
access (ns)
typical size(MB)
metric
access (ns)
metric
access (ms)
typical size(MB)
Datorarkitektur 2009
processor
Pent
clock rate(MHz)
cycle time(ns)
F13 – 32 –
Datorarkitektur 2009
year
ns
Disk seek time DRAM access time SRAM access time CPU cycle time
Datorarkitektur 2009
F13 – 38 –
Datorarkitektur 2009
registers on-chip L cache (SRAM)^ main memory
local secondary storage
(local disks)
Larger,slower,
and cheaper(per byte)storagedevices
remote secondary storage
(distributed file systems, Web servers)
Local disks hold filesretrieved from disks onremote network servers.
Main memory holds diskblocks retrieved from localdisks.
off-chip L cache (SRAM)
L1 cache holds cache lines retrievedfrom the L2 cache memory.
CPU registers hold words retrieved fromL1 cache.
L2 cache holds cache lines retrievedfrom main memory.
Smaller,
faster,
and costlier (per byte)
storagedevices
Datorarkitektur 2009
F13 – 40 –
Datorarkitektur 2009
Larger, slower, cheaper storagedevice at level k+1 is partitionedinto blocks.
Data is copied betweenlevels in block-sized transfer units
Smaller, faster, more expensivedevice at level k caches asubset of the blocks from level k+
Level k:
Level k+1:
Datorarkitektur 2009
Request
Request
Placement policy:
where can the new block
go? E.g., b mod 4
Replacement policy:
which block should be
evicted? E.g., LRU
Level
k:
Level
k+1:
0
1
2
3
Request
F13 – 42 –
Datorarkitektur 2009
Datorarkitektur 2009