Memory Hierarchy questions — page 2 of 3

Q21

GATE CS 2020 CSMemory HierarchyNAT1 mark
A direct mapped cache memory of 1 MB has a block size of 256 bytes. The cache has an access time of 3 ns and a hit rate of 94%. During a cache miss, it takes 20 ns to bring the first word of a block from the main memory, while each subsequent word takes 5 ns. The word size is 64 bits. The average memory access time in ns (round off to 1 decimal place) is __________.
Show answer without attempting

Answer: 13.3 OR 13.5

Q30

GATE CS 2020 CSMemory HierarchyMCQ2 marks−2/3 if wrong
A computer system with a word length of 32 bits has a 16 MB byte-addressable main memory and a 64 KB, 4-way set associative cache memory with a block size of 256 bytes. Consider the following four physical addresses represented in hexadecimal notation.

A1 = 0x42C8A4, A2 = 0x546888, A3 = 0x6A289C, A4 = 0x5E4880

Which one of the following is TRUE?
Show answer without attempting

Answer: B

Q1

GATE CS 2019 CSMemory HierarchyMCQ1 mark−1/3 if wrong
A certain processor uses a fully associative cache of size 16 kB16\text{ kB}. The cache block size is 1616 bytes. Assume that the main memory is byte addressable and uses a 32-bit address. How many bits are required for the Tag and the Index fields respectively in the addresses generated by the processor?
Show answer without attempting

Answer: D

Q2

GATE CS 2019 CSMemory HierarchyMCQ1 mark−1/3 if wrong
The chip select logic for a certain DRAM chip in a memory system design is shown below. Assume that the memory system has 16 address lines denoted by A15A_{15} to A0A_0. What is the range of addresses (in hexadecimal) of the memory system that can get enabled by the chip select (CS) signal?
Question figure
Show answer without attempting

Answer: A

Q45

GATE CS 2019 CSMemory HierarchyNAT2 marks
A certain processor deploys a single-level cache. The cache block size is 8 words and the word size is 4 bytes. The memory system uses a 60-MHz60\text{-MHz} clock. To service a cache miss, the memory controller first takes 1 cycle to accept the starting address of the block, it then takes 3 cycles to fetch all the eight words of the block, and finally transmits the words of the requested block at the rate of 1 word per cycle. The maximum bandwidth for the memory system when the program running on the processor issues a series of read operations is __________ ×106\times 10^6 bytes/sec.
Show answer without attempting

Answer: 160

Q23

GATE CS 2018 CSMemory HierarchyNAT1 mark
A 32-bit wide main memory unit with a capacity of 1 GB is built using 256M×4-bit256\text{M} \times \text{4-bit} DRAM chips. The number of rows of memory cells in the DRAM chip is 2142^{14}. The time taken to perform one refresh operation is 50 nanoseconds. The refresh period is 2 milliseconds. The percentage (rounded to the closest integer) of the time available for performing the memory read/write operations in the main memory unit is __________.
Show answer without attempting

Answer: 59.0 to 60.0

Q34

GATE CS 2018 CSMemory HierarchyMCQ2 marks−2/3 if wrong
The size of the physical address space of a processor is 2P2^P bytes. The word length is 2W2^W bytes. The capacity of cache memory is 2N2^N bytes. The size of each cache block is 2M2^M words. For a KK-way set-associative cache memory, the length (in number of bits) of the tag field is
Show answer without attempting

Answer: B

Q25

GATE CS 2017 CS-1Memory HierarchyNAT1 mark
Consider a two-level cache hierarchy with L1 and L2 caches. An application incurs 1.41.4 memory accesses per instruction on average. For this application, the miss rate of L1 cache is 0.10.1; the L2 cache experiences, on average, 77 misses per 10001000 instructions. The miss rate of L2 expressed correct to two decimal places is ____________.
Show answer without attempting

Answer: 0.05

Q51

GATE CS 2017 CS-1Memory HierarchyNAT2 marks
Consider a 2-way set associative cache with 256256 blocks and uses LRU replacement. Initially the cache is empty. Conflict misses are those misses which occur due to contention of multiple blocks for the same cache set. Compulsory misses occur due to first time access to the block. The following sequence of accesses to memory blocks

(0,128,256,128,0,128,256,128,1,129,257,129,1,129,257,129)(0, 128, 256, 128, 0, 128, 256, 128, 1, 129, 257, 129, 1, 129, 257, 129)

is repeated 1010 times. The number of conflict misses experienced by the cache is ____________.
Show answer without attempting

Answer: 76.0

Q54

GATE CS 2017 CS-1Memory HierarchyNAT2 marks
A cache memory unit with capacity of NN words and block size of BB words is to be designed. If it is designed as a direct mapped cache, the length of the TAG field is 1010 bits. If the cache unit is now designed as a 1616-way set-associative cache, the length of the TAG field is ____________ bits.
Show answer without attempting

Answer: 14.0

Q29

GATE CS 2017 CS-2Memory HierarchyMCQ2 marks−2/3 if wrong
In a two-level cache system, the access times of L1L_1 and L2L_2 caches are 1 and 8 clock cycles, respectively. The miss penalty from the L2L_2 cache to main memory is 18 clock cycles. The miss rate of L1L_1 cache is twice that of L2L_2. The average memory access time (AMAT) of this cache system is 2 cycles. The miss rates of L1L_1 and L2L_2 respectively are:
Show answer without attempting

Answer: A

Q45

GATE CS 2017 CS-2Memory HierarchyNAT2 marks
The read access times and the hit ratios for different caches in a memory hierarchy are as given below.
CacheRead access time (in nanoseconds)Hit ratio
I-cache20.8
D-cache20.9
L2-cache80.9
The read access time of main memory is 90 nanoseconds. Assume that the caches use the referred-word-first read policy and the write back policy. Assume that all the caches are direct mapped caches. Assume that the dirty bit is always 0 for all the blocks in the caches. In execution of a program, 60% of memory reads are for instruction fetch and 40% are for memory operand fetch. The average read access time in nanoseconds (up to 2 decimal places) is ____________.
Show answer without attempting

Answer: 4.72

Q53

GATE CS 2017 CS-2Memory HierarchyNAT2 marks
Consider a machine with a byte addressable main memory of 2322^{32} bytes divided into blocks of size 32 bytes. Assume that a direct mapped cache having 512 cache lines is used with this machine. The size of the tag field in bits is ____________.
Show answer without attempting

Answer: 18.0

Q32

GATE CS 2016 CS-2Memory HierarchyNAT2 marks
The width of the physical address on a machine is 40 bits. The width of the tag field in a 512 KB 8-way set associative cache is _________ bits.
Show answer without attempting

Answer: 24.0

Q34

GATE CS 2015 CS-3Memory HierarchyMCQ1 mark−1/3 if wrong
Consider a machine with a byte addressable main memory of 2202^{20} bytes, block size of 16 bytes and a direct mapped cache having 2122^{12} cache lines. Let the addresses of two consecutive bytes in main memory be (E201F)16(\text{E201F})_{16} and (E2020)16(\text{E2020})_{16}. What are the tag and cache line address (in hex) for main memory address (E201F)16(\text{E201F})_{16}?
Show answer without attempting

Answer: A

Q50

GATE CS 2015 CS-3Memory HierarchyMCQ2 marks−2/3 if wrong
Consider the following two C code segments. YY and XX are one and two dimensional arrays of size nn and n×nn \times n respectively, where 2≤n≤102 \le n \le 10. Assume that in both code segments, elements of YY are initialized to 0 and each element X[i][j]X[i][j] of array XX is initialized to i+ji+j. Further assume that when stored in main memory all elements of XX are in same main memory page frame.

Code segment 1:
//initialize elements of Y to 0
//initialize elements X[i][j] of X to i+j

for(i = 0; i < n; i++)
    Y[i] += X[0][i];
Code Segment 2:
//initialize elements of Y to 0
//initialize elements X[i][j] of X to i+j

for(i = 0; i < n; i++)
    Y[i] += X[i][0];
Which of the following statements is/are correct?

S1: Final contents of array YY will be same in both code segments
S2: Elements of array XX accessed inside the for loop shown in code segment 1 are contiguous in main memory
S3: Elements of array XX accessed inside the for loop shown in code segment 2 are contiguous in main memory
Show answer without attempting

Answer: C

Q18

GATE CS 2015 CS-2Memory HierarchyNAT1 mark
Assume that for a certain processor, a read request takes 50 nanoseconds on a cache miss and 5 nanoseconds on a cache hit. Suppose while running a program, it was observed that 80% of the processor's read requests result in a cache hit. The average read access time in nanoseconds is ___________.
Show answer without attempting

Answer: 14

Q9

GATE CS 2014 CS-2Memory HierarchyNAT1 mark
A 4-way set-associative cache memory unit with a capacity of 16 KB is built using a block size of 8 words. The word length is 32 bits. The size of the physical address space is 4 GB. The number of bits for the TAG field is _____
Show answer without attempting

Answer: 20

Q43

GATE CS 2014 CS-2Memory HierarchyMCQ2 marks−2/3 if wrong
In designing a computer’s cache system, the cache block (or cache line) size is an important parameter. Which one of the following statements is correct in this context?
Show answer without attempting

Answer: D

Q44

GATE CS 2014 CS-2Memory HierarchyMCQ2 marks−2/3 if wrong
If the associativity of a processor cache is doubled while keeping the capacity and block size unchanged, which one of the following is guaranteed to be NOT affected?
Show answer without attempting

Answer: D

0/200 correct0 marks

Related topics in Computer Organization and Architecture