






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
Material Type: Assignment; Class: Computer Organization; Subject: Computer Science; University: Columbus State University; Term: Spring 2006;
Typology: Assignments
1 / 10
This page cannot be seen from the preview
Don't miss anything!







The following problems were assigned from Chapter 6 of the textbook Problems 6, 8, 9, 11, and 12. These are found on pages 268 – 270 of the textbook.
In order to maintain some clarity in the tables, we first show the address fields. Address Tag Set Word Offset 8 0000 00000 01 000 0 1 0 9 0000 00000 01 001 0 1 1 10 0000 00000 01 010 0 1 2 11 0000 00000 01 011 0 1 3 12 0000 00000 01 100 0 1 4 13 0000 00000 01 101 0 1 5 14 0000 00000 01 110 0 1 6 15 0000 00000 01 111 0 1 7 16 0000 00000 10 000 0 2 0 17 0000 00000 10 001 0 2 1 18 0000 00000 10 010 0 2 2 19 0000 00000 10 011 0 2 3 20 0000 00000 10 100 0 2 4 21 0000 00000 10 101 0 2 5 22 0000 00000 10 110 0 2 6 23 0000 00000 10 111 0 2 7 24 0000 00000 11 000 0 3 0 25 0000 00000 11 001 0 3 1 26 0000 00000 11 010 0 3 2 27 0000 00000 11 011 0 3 3 28 0000 00000 11 100 0 3 4 29 0000 00000 11 101 0 3 5 30 0000 00000 11 110 0 3 6 31 0000 00000 11 111 0 3 7 32 0000 00001 00 000 1 0 0 33 0000 00001 00 001 1 0 1 34 0000 00001 00 010 1 0 2 35 0000 00001 00 011 1 0 3 36 0000 00001 00 100 1 0 4 37 0000 00001 00 101 1 0 5 38 0000 00001 00 110 1 0 6 39 0000 00001 00 111 1 0 7 40 0000 00001 01 000 1 1 0 41 0000 00001 01 001 1 1 1 42 0000 00001 01 010 1 1 2 43 0000 00001 01 011 1 1 3 44 0000 00001 01 100 1 1 4 45 0000 00001 01 101 1 1 5 46 0000 00001 01 110 1 1 6 47 0000 00001 01 111 1 1 7 48 0000 00001 10 000 1 2 0 49 0000 00001 10 001 1 2 1 50 0000 00001 10 010 1 2 2 51 0000 00001 10 011 1 2 3
Access word at address 32 Cache Miss Tag = 0, Set = 0, Offset = 0 Block 0 of Set Block 1 of Set Set Tag Contents Tag Contents 0 32, 33, 34, 35, 36, 37, 38, 39 1 0 8, 9, 10, 11, 12, 13, 14, 15 2 16, 17, 18, 19, 20, 21, 22, 23 3 24, 25, 26, 27, 28, 29, 30, 31 Seven accesses: words at addresses 33 through 39: Seven cache hits. Total cache misses = 4. Total cache hits = 28. Hit Ratio = 7 / 8. Access word at address 40 Cache Miss Tag = 0, Set = 1, Offset = 0 Block 0 of Set Block 1 of Set Set Tag Contents Tag Contents 0 32, 33, 34, 35, 36, 37, 38, 39 1 0 8, 9, 10, 11, 12, 13, 14, 15 40, 41, 42, 43, 44, 45, 46, 47 2 16, 17, 18, 19, 20, 21, 22, 23 3 24, 25, 26, 27, 28, 29, 30, 31 Seven accesses: words at addresses 41 through 47: Seven cache hits. Total cache misses = 5. Total cache hits = 35. Hit Ratio = 7 / 8. Access word at address 48 Cache Miss Tag = 0, Set = 2, Offset = 0 Block 0 of Set Block 1 of Set Set Tag Contents Tag Contents 0 32, 33, 34, 35, 36, 37, 38, 39 1 0 8, 9, 10, 11, 12, 13, 14, 15 40, 41, 42, 43, 44, 45, 46, 47 2 16, 17, 18, 19, 20, 21, 22, 23 48, 49, 50, 51, 52, 53, 54, 55 3 24, 25, 26, 27, 28, 29, 30, 31 Seven accesses: words at addresses 48 through 51: Three cache hits. Total cache misses = 6. Total cache hits = 38. Hit Ratio = 38 / 44. Loop 2 44 total accesses. All are cache hits. Hit ratio = 82 / 88. Loop 3 44 total accesses. All are cache hits Hit ratio = 126 / 132 = 21 / 22 = 0.
Access address 91 Block = 0 Tag = 9 Cache Miss Block Tag Contents (represented by address) 0 9 90, 91, 92, 93 1 1 14, 15, 16, 17 2 B B8, B9, BA, BB 3 4 4C, 4D, 4E, 4F 3 cache misses 1 cache hit 4 total cache accesses. Access address A8 Block = 2 Tag = A Cache Miss Block Tag Contents (represented by address) 0 9 90, 91, 92, 93 1 1 14, 15, 16, 17 2 A A8, A9, AA, AB 3 4 4C, 4D, 4E, 4F 4 cache misses 1 cache hit 5 total cache accesses. Access address A9 Block = 2 Tag = A Cache Hit Block Tag Contents (represented by address) 0 9 90, 91, 92, 93 1 1 14, 15, 16, 17 2 A A8, A9, AA, AB 3 4 4C, 4D, 4E, 4F 4 cache misses 2 cache hits 6 total cache accesses. Access address AB Block = 2 Tag = A Cache Hit Block Tag Contents (represented by address) 0 9 90, 91, 92, 93 1 1 14, 15, 16, 17 2 A A8, A9, AA, AB 3 4 4C, 4D, 4E, 4F 4 cache misses 3 cache hits 7 total cache accesses.
Access address AD Block = 3 Tag = A Cache Miss Block Tag Contents (represented by address) 0 9 90, 91, 92, 93 1 1 14, 15, 16, 17 2 A A8, A9, AA, AB 3 A AC, AD, AE, AF 5 cache misses 3 cache hits 8 total cache accesses. Access address 93 Block = 0 Tag = 9 Cache Hit Block Tag Contents (represented by address) 0 9 90, 91, 92, 93 1 1 14, 15, 16, 17 2 A A8, A9, AA, AB 3 A AC, AD, AE, AF 5 cache misses 4 cache hits 9 total cache accesses. Access address 94 Block = 1 Tag = 9 Cache Miss Block Tag Contents (represented by address) 0 9 90, 91, 92, 93 1 9 94, 95, 96, 97 2 A A8, A9, AA, AB 3 A AC, AD, AE, AF 6 cache misses 4 cache hits 10 total cache accesses. There are three options for the answer.