Question
1. Consider a two way set associative cache with 8K memory for storing data. Each line in the cache stores 4 bytes of data. a.
1. Consider a two way set associative cache with 8K memory for storing data. Each line in the cache stores 4 bytes of data. a. How many lines and how many sets does the cache have? b. The cache is used with a computer having a 18 bit address bus. Illustrate how the CPU address is divided into the TAG, SET, and OFFSET fields. Also indicate the number of bits in each field. c. Calculate the total number of memory bits used in the cache, including all the lines, the tags, and valid bit for each line.
2. Consider a two way set associative cache with 1024 lines and 8 bytes per line a. How many sets does the cache have? b. The cache is used with a computer having a 16 bit address bus. Illustrate how the CPU address is divided into the TAG, SET, and OFFSET fields. Indicate the number of bits in each field. c. Calculate the cache data size, in bytes d. Calculate the total number of memory bits used in the cache, including all the lines, the tags, and valid bit for each line.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started