






























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!































Magnetic tapes
Magnetic disks
processor
Main memory
Cache memory
Auxiliary memory
Register
Cache
Main Memory
Magnetic Disk
Magnetic Tape
Component
Hexa address 0 0 0 x x x x x x x 0 0 1 x x x x x x x 0 1 0 x x x x x x x 0 1 1 x x x x x x x 1 x x x x x x x x x
Address bus
CS CS RD WR AD
128 x 8 RAM 1
CS CS RD WR AD
128 x 8 RAM 2
CS CS RD WR AD
128 x 8 RAM 3
CS CS RD WR AD
128 x 8 RAM 4
Decoder 3 2 1 0
16-11 10 9 8 7-1 RD WR
Address bus Data bus
CS CS 512 x 8 AD9^ ROM
1- 7
9
8
Data
Data
Data
Data
Data
Argument register(A)
Key register (K)
Associative memory array and logic
m words n bits per word
Match register
Input
Read Write
Word 1^ C 11
Word i
Word m
Bit 1 Bit j^ Bit n
M (^) i
M (^) m
Aj
Output
Match logic
Input
Write
Read
Kj
F (^) ij To M (^) i
A 1 Aj An
K 1 Kj Kn
C1j C1n
Ci1 Cij Cin
Cm1 Cmj Cmn
Main memory
Cache memory
MEMORY AND CACHE MAPPING - DIRECT MAPPING -
Addressing Relationships
Direct Mapping Cache Organization
Memory address Memory data 00000 1 2 2 0
00777 01000
01777 02000
02777
2 3 4 0 3 4 5 0
4 5 6 0 5 6 7 0
6 7 1 0
Index address Tag^ Data 000 0 0^ 1 2 2 0
777 0 2^ 6 7 1 0
Tag(6) Index(9)
32K x 12
Address = 15 bits Data = 12 bits
512 x 12
Address = 9 bits Data = 12 bits
00 000
77 777
000
777
Index (^) tag data 000 0 1 3 4 5 0 007 0 1^ 6 5 7 8 010 017
Block 0
Block 1
Block 63
Tag Block Word
Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7
Block 3
Block 2
Block 1
Address space^ Block 0 N = 8K = 2^13
Memory space M = 4K = 2^12
Block 0 Block 1 Block 2 Block 3
Table address
Presence bit
Page no. Line number Virtual address
Main memory address register Memory page table
Main memory 11 00
1 0 1 Line number
Page no.
Argument register
Key register
Associative memory
Page no. Block no.
Virtual address