How many memory modules of size 1M*4 are required to construct a memory module of size 4M * 16 are ?

12

8

10

16

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider a processor has access to two levels of memory. Level 1 contains 150 words and has an access time of 12 ns; level 2 contains 3,000 words and has an access time of 150ns. Assume that if a word to be accessed is in level 1, then the processor accesses it directly. If it is in level 2, then the word is first transferred to level 1 and then accessed by the processor. Suppose 90% of the memory accesses are found in the Level 1 cache. Then the average time to access a word is?
20ns
35ns
30ns
27ns
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Which of the following statements is/are true in the context of associative mapped cache memory ? [MSQ]
Fully associative cache needs more number of comparators to match tag bits compared to direct mapped cache.
k-way set associative mapped cache needs less number of comparators to match tag bits compared to fully associative mapped cache with n blocks, where k and n are integers and k<n.
Fully associative cache needs less number of comparators to match tag bits compared to direct mapped cache.
k-way set associative mapped cache needs more number of comparators to match tag bits compared to fully associative mapped cache with n blocks, where k and n are integers and k<n.
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.00
A 32 KB cache has a 64 byte block size and is 4-way set-associative. what is the size of tag directory(in bits), assuming the physical address is 48-bits ?
4736
9472
17920
13920

Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
Consider an L1 cache, L2 cache, and main memory. The hit rates and hit times for each are:

75% hit rate, 2ns hit time for L1.

90% hit rate, 10 ns hit time for L2.

100% hit rate, 150 ns hit time for main memory

What percentage of accesses are serviced from L2?

22.5%
55%
35%
15%
Difficulty Level: 1
Positive Marks: 1.00
Negative Marks: 0.33
In a two-level cache system, the access times of L1 and L2 are 2, 8 clock cycles respectively. The miss penalty from the L2 cache to main memory is 20 clock cycles. The miss rate of L1 cache is twice that of L2. The average memory access time(AMAT) of this cache system is 5 cycles. The miss rates of L1 and L2 respectively are:
0.139 and 0.278
0.278 and 0.139
0.534 and 0.267
0.267 and 0.534
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider 64 KB 8-way set associative cache with 256-byte block size. Physical address is 32 bits. What is the number of comparators and size of each comparator required for tag matching, respectively?
(8, 19)
(8, 18)
(19, 8)
(20, 8)
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider a processor having 32-bit word size and 32KB direct mapped cache where each cache line holds four words. If we assume that the machine is byte-addressable and the physical address is 32 bits. Where in the cache is the word from memory location 3B2D6C0E mapped?
Block no. - 1428, byte no. - 11
Block no. - 1728, byte no. - 14
Block no. - 1362, byte no. - 15
Block no. - 1240, byte no. - 12
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Consider an array A[100] where each element occupies 2 words. A 32-word cache is used and divided into 8-word blocks. What is the hit rate for the below statement in accessing the array elements:

for(i=0; i<100; i++)

A[i] = A[i]-5;

95.4%
87.5%
85.5%
75.6%
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Consider a system with cache access time 15 ns and main memory access time 100 ns. If 60% operations are read operations and hit ratio is 90%. What is the effective access time (in nano seconds) if write through updation technique is used?

70
55
65
85
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66

Consider a directed mapped cache that has 4-lines and supports a block size of 16 bytes. Calculate the hit ratio for the following memory block access pattern?

0, 8, 15, 14, 32, 12, 18, 8, 15, 48, 12, 21, 32, 18, 21

30%
40%
20%
25%
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
Consider 32 KB 2-way set associative cache with 128-byte block size. Physical address is 32 bits long. A 2-to-1 multiplexer has a latency of 2 ns while a k bit comparator has a latency of 2k ns. The hit latency of the cache organization is?
36ns
39ns
37ns
38ns
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
If a 4-way set-associative cache is made up of 64 bit words, 8 words per line and 4096 sets, how big is the cache in bytes?
2^19 bytes
2^18 bytes
2^20 bytes
2^15 bytes
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
A direct mapped cache memory of 1MB has a block size of 512 bytes. The cache has an access time of 4ns and a hit rate 95%. During a cache miss, it takes 25ns to bring the first word of a block from main memory while each subsequent word takes 5ns. The word size is 32 bits. If it is a hierarchical memory access, what is the average memory access time in ns ____________?
37
35
34
33
Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66
A computer system which has a 256 MB byte-addressable main memory and a 128 KB, 2-way set associative cache memory with a block size of 2KB. Consider the following four physical addresses represented in hexadecimal notation.

P1 = 0x34248A4,

P2 = 0x3548A88,

P3 = 0x36A493C,

P4 = 0x35E5680

Which one of the following is TRUE ?

P1, P2 are mapped to the same cache set
P2, P3 are mapped to the same cache set
P1. P3 are mapped to the same cache set
P3, P4 are mapped to the same cache set

Difficulty Level: 1
Positive Marks: 2.00
Negative Marks: 0.66