You are on page 1of 4

Soal:

Buat Mapping memmori untuk Direct mapping, Set Assosiatif Map 16 way, dan Assosiatif Mapping

MM 8M = 23 Bit
CM 128 K = 17 Bit
1 Blok 512 Word = 9 Bit

Jawaban: Tag Set Word Blok/set


6 8 9 1 Direct Mapping
7 7 9 2
8 6 9 4
9 5 9 8
10 4 9 16 Set Assosiatif Mapping 16 way
11 3 9 32
12 2 9 64
13 1 9 128
14 - 9 256 Assosiatif Mapping
Direct Mapping
CM MM Word

tag Blok 0 Blok 0 Word 0


tag 1 1 1
tag 2 2 2
tag 3 3

Tag 0
255
Blok 0 = 256
257
258
259
Tag 1

tag 255

511
Blok 0 = 512
513
Word 511
Tag 64 … sd

16383
Set Assosiatif Map 16 Way
CM MM Word

tag Blok 0 Blok 0 Word 0


tag 1 1 1
tag 2 2 2
set 0

tag 3 3

Tag 0
tag 15
tag 16
tag 17
set 1

15
tag 30 Blok 0 = 16
tag 31 17
tag 32 18
set 2

19

tag 35
Tag 1
sd set 16

tag 255

30
Blok 0 = 31
32
Word 511
Tag 1023 … sd

16383
Assosiatif Mapping
CM MM Word

tag Blok 0 Blok 0 tag 0 Word 0


tag 1 1 tag 1 1
tag 2 2 tag 2 2
tag 3 3 tag 3
set

255 tag 255


256 tag 256
257 tag 257
258 tag 258
259 tag 259

tag 255

8000 tag 8000


8001 tag 8001
8002 tag 8002
Word 511

16383 tag 16383

You might also like