Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider a machine with a 2-way set associati... Start Learning for Free
Consider a machine with a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows:
double ARR[1024] [1024];
int i, j;
/* Initialize array ARR to 0.0 */
for (i = 0; i < 1024; i++)
for (j = 0; j < 1024; j++)
ARR[i] [j] = 0.0;
The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array ARR.
The total size of the tags in the cache directory is
  • a)
    32 K bits
  • b)
    34 K bits
  • c)
    64 K bits
  • d)
    68 K bits
Correct answer is option 'B'. Can you explain this answer?
Most Upvoted Answer
Consider a machine with a 2-way set associative data cache of size 64 ...
Virtual (CPU) address has 32 bits.
2 way set associative cache size = 64 KB
Size of 1 set = 32 KB
We require 15 bits for indexing.
So, Tag = 32 - 15 = 17
Size of block = 16 bytes i.e. 4 bits are required
Index = block + word
Block = 15 - 4 = 11
CPV address
There are 217 bytes of tags in every set of cache.
So, total = 17 × 2 × 1024 = 34 K bits
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

Consider a machine with a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows:double ARR[1024] [1024];int i, j;/* Initialize array ARR to 0.0 */for (i = 0; i < 1024; i++)for (j = 0; j < 1024; j++)ARR[i] [j] = 0.0;The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array ARR.The total size of the tags in the cache directory isa)32 K bitsb)34 K bitsc)64 K bitsd)68 K bitsCorrect answer is option 'B'. Can you explain this answer?
Question Description
Consider a machine with a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows:double ARR[1024] [1024];int i, j;/* Initialize array ARR to 0.0 */for (i = 0; i < 1024; i++)for (j = 0; j < 1024; j++)ARR[i] [j] = 0.0;The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array ARR.The total size of the tags in the cache directory isa)32 K bitsb)34 K bitsc)64 K bitsd)68 K bitsCorrect answer is option 'B'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider a machine with a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows:double ARR[1024] [1024];int i, j;/* Initialize array ARR to 0.0 */for (i = 0; i < 1024; i++)for (j = 0; j < 1024; j++)ARR[i] [j] = 0.0;The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array ARR.The total size of the tags in the cache directory isa)32 K bitsb)34 K bitsc)64 K bitsd)68 K bitsCorrect answer is option 'B'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider a machine with a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows:double ARR[1024] [1024];int i, j;/* Initialize array ARR to 0.0 */for (i = 0; i < 1024; i++)for (j = 0; j < 1024; j++)ARR[i] [j] = 0.0;The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array ARR.The total size of the tags in the cache directory isa)32 K bitsb)34 K bitsc)64 K bitsd)68 K bitsCorrect answer is option 'B'. Can you explain this answer?.
Solutions for Consider a machine with a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows:double ARR[1024] [1024];int i, j;/* Initialize array ARR to 0.0 */for (i = 0; i < 1024; i++)for (j = 0; j < 1024; j++)ARR[i] [j] = 0.0;The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array ARR.The total size of the tags in the cache directory isa)32 K bitsb)34 K bitsc)64 K bitsd)68 K bitsCorrect answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Consider a machine with a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows:double ARR[1024] [1024];int i, j;/* Initialize array ARR to 0.0 */for (i = 0; i < 1024; i++)for (j = 0; j < 1024; j++)ARR[i] [j] = 0.0;The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array ARR.The total size of the tags in the cache directory isa)32 K bitsb)34 K bitsc)64 K bitsd)68 K bitsCorrect answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider a machine with a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows:double ARR[1024] [1024];int i, j;/* Initialize array ARR to 0.0 */for (i = 0; i < 1024; i++)for (j = 0; j < 1024; j++)ARR[i] [j] = 0.0;The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array ARR.The total size of the tags in the cache directory isa)32 K bitsb)34 K bitsc)64 K bitsd)68 K bitsCorrect answer is option 'B'. Can you explain this answer?, a detailed solution for Consider a machine with a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows:double ARR[1024] [1024];int i, j;/* Initialize array ARR to 0.0 */for (i = 0; i < 1024; i++)for (j = 0; j < 1024; j++)ARR[i] [j] = 0.0;The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array ARR.The total size of the tags in the cache directory isa)32 K bitsb)34 K bitsc)64 K bitsd)68 K bitsCorrect answer is option 'B'. Can you explain this answer? has been provided alongside types of Consider a machine with a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows:double ARR[1024] [1024];int i, j;/* Initialize array ARR to 0.0 */for (i = 0; i < 1024; i++)for (j = 0; j < 1024; j++)ARR[i] [j] = 0.0;The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array ARR.The total size of the tags in the cache directory isa)32 K bitsb)34 K bitsc)64 K bitsd)68 K bitsCorrect answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider a machine with a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows:double ARR[1024] [1024];int i, j;/* Initialize array ARR to 0.0 */for (i = 0; i < 1024; i++)for (j = 0; j < 1024; j++)ARR[i] [j] = 0.0;The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array ARR.The total size of the tags in the cache directory isa)32 K bitsb)34 K bitsc)64 K bitsd)68 K bitsCorrect answer is option 'B'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev