ME TEST
closed

closed by
466 views
0 votes
0 votes

Consider Prof. Vamshi‘s writes a program given below and run on system which has 2-way set associative 16 KB data cache with 32 bytes block where each word size is 32 bits and LRU replacement policy used. If base address of array 'a‘ is 0x0 and initially cache is empty then the number of data cache misses are there ______ 
(Assume integer takes 4 bytes.)

int i, a[1024 * 1024], x = 0;
for (i= 0; i < 1024; i++)
        x + = a[i] + a[1024* i];

what will be the physical memory size here?and how many bits should we assign for physical memory addressing?

closed by

Related questions

1 votes
1 votes
0 answers
1
0 votes
0 votes
0 answers
2
bts1jimin asked Jan 17, 2019
451 views
here it is given byte addressable. So these locations refer to words or byte location. What are set, block fields here : number of words or number of bytes for these loca...
0 votes
0 votes
0 answers
3
abhishekmehta4u asked Sep 16, 2018
231 views
Main mem block number is 4,6 and 8 . Then 8 is compalsory miss or conflict miss ????
3 votes
3 votes
2 answers
4
Ayan21 asked Sep 11, 2018
992 views
Consider a direct map cache of 8 words, with block 2 words per Block. The following sequence of access to memory block 0,5,2,7,4,0 and 4 is repeated 10 times.Q1) number o...