Tutorial Nine Cache CompSci 210 - Semester One 2016
Exercise 9.1 Answer the following questions for a direct-mapped cache with 8 cache lines, where each line has 1 word, each word is 2 bytes, and the address bus is 16 bits. How many bits are needed for the index field How many bits are there in the tag field How much data can be held in the cache
Exercise 9.1 Answer the following questions for a direct-mapped cache with 8 cache lines, where each line has 1 word, each word is 2 bytes, and the address bus is 16 bits. How many bits are needed for the index field How many bits are there in the tag field How much data can be held in the cache
Exercise 9.1 Answer the following questions for a direct-mapped cache with 8 cache lines, where each line has 1 word, each word is 2 bytes, and the address bus is 16 bits. How many bits are needed for the index field (3 bits) How many bits are there in the tag field How much data can be held in the cache
Exercise 9.1 Answer the following questions for a direct-mapped cache with 8 cache lines, where each line has 1 word, each word is 2 bytes, and the address bus is 16 bits. How many bits are needed for the index field (3 bits) How many bits are there in the tag field How much data can be held in the cache
Exercise 9.1 Answer the following questions for a direct-mapped cache with 8 cache lines, where each line has 1 word, each word is 2 bytes, and the address bus is 16 bits. How many bits are needed for the index field (3 bits) How many bits are there in the tag field (13 bits) How much data can be held in the cache
Exercise 9.1 Answer the following questions for a direct-mapped cache with 8 cache lines, where each line has 1 word, each word is 2 bytes, and the address bus is 16 bits. How many bits are needed for the index field (3 bits) How many bits are there in the tag field (13 bits) How much data can be held in the cache
Exercise 9.1 Answer the following questions for a direct-mapped cache with 8 cache lines, where each line has 1 word, each word is 2 bytes, and the address bus is 16 bits. How many bits are needed for the index field (3 bits) How many bits are there in the tag field (13 bits) How much data can be held in the cache (16 bytes)
Cache Trace Memory Access Slot # Address Item 1 2 3 4 5 6 7 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x4503 Memory Access Slot # Address Item 1 2 3 4 5 6 7 Access 0x4503 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x4503 0100 0101 0000 0011 Memory Access Slot # Address Item 1 2 3 4 5 6 7 Access 0x4503 0100 0101 0000 0011 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x4503 0100 0101 0000 0011 Memory Access Slot # Address Item 1 2 3 4 5 6 7 Access 0x4503 0100 0101 0000 0011 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x4503 Cache Miss! 0100 0101 0000 0011 Slot # Address Item 1 2 3 4 5 6 7 Access 0x4503 Cache Miss! 0100 0101 0000 0011 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x4503 0100 0101 0000 0011 Memory Access Slot # Address Item 1 2 3 0x4503 4 5 6 7 Access 0x4503 0100 0101 0000 0011 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Memory Access Slot # Address Item 1 2 3 0x4503 4 5 6 7 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x450C Memory Access Slot # Address Item 1 2 3 0x4503 4 5 6 7 Access 0x450C Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x450C 0100 0101 0000 1100 Memory Access Slot # Address Item 1 2 3 0x4503 4 5 6 7 Access 0x450C 0100 0101 0000 1100 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x450C 0100 0101 0000 1100 Memory Access Slot # Address Item 1 2 3 0x4503 4 5 6 7 Access 0x450C 0100 0101 0000 1100 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x450C Cache Miss! 0100 0101 0000 1100 Slot # Address Item 1 2 3 0x4503 4 5 6 7 Access 0x450C Cache Miss! 0100 0101 0000 1100 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x450C 0100 0101 0000 1100 Memory Access Slot # Address Item 1 2 3 0x4503 4 0x450C 5 6 7 Access 0x450C 0100 0101 0000 1100 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x4503 Memory Access Slot # Address Item 1 2 3 0x4503 4 0x450C 5 6 7 Access 0x4503 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x4503 Cache Hit! Memory Access Slot # Address Item 1 2 3 0x4503 1, 3 4 0x450C 5 6 7 Access 0x4503 Cache Hit! Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x452B Memory Access Slot # Address Item 1 2 3 0x4503 1, 3 4 0x450C 5 6 7 Access 0x452B Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x452B Cache Miss! 0100 0101 0010 1011 Slot # Address Item 1 2 3 0x4503 1, 3 4 0x450C 5 6 7 Access 0x452B Cache Miss! 0100 0101 0010 1011 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x5071 Memory Access Slot # Address Item 1 2 3 0x452B 4 0x450C 5 6 7 Access 0x5071 Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x5071 Cache Miss! Memory Access Slot # Address Item 1 0x5071 5 2 3 0x452B 4 0x450C 6 7 Access 0x5071 Cache Miss! Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x450C Cache Hit! Memory Access Slot # Address Item 1 0x5071 5 2 3 0x452B 4 0x450C 2, 6 6 7 Access 0x450C Cache Hit! Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x45FE Cache Miss! Memory Access Slot # Address Item 1 0x5071 5 2 3 0x452B 4 0x450C 2, 6 6 0x45FE 7 Access 0x45FE Cache Miss! Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C
Cache Trace Access 0x450C Cache Hit! Memory Access Slot # Address Item 1 0x5071 5 2 3 0x452B 4 0x450C 2, 6, 8 6 0x45FE 7 Access 0x450C Cache Hit! Memory Access 0x4503, 0x450C, 0x4503, 0x452B, 0x5071, 0x450C, 0x45FE, 0x450C