Memory Hierarchy questions

Q22

GATE CS 2021 CS-1Memory HierarchyNAT1 mark
Consider a computer system with a byte-addressable primary memory of size 2322^{32} bytes. Assume the computer system has a direct-mapped cache of size 32 KB (1 KB = 2102^{10} bytes), and each cache block is of size 64 bytes.
The size of the tag field is ______ bits.
Show answer without attempting

Answer: 17

Q19

GATE CS 2021 CS-2Memory HierarchyNAT1 mark
Consider a set-associative cache of size 2KB (1KB=2101\text{KB} = 2^{10} bytes) with cache block size of 64 bytes. Assume that the cache is byte-addressable and a 32-bit address is used for accessing the cache. If the width of the tag field is 22 bits, the associativity of the cache is ____________.
Show answer without attempting

Answer: 2

Q27

GATE CS 2021 CS-2Memory HierarchyMCQ2 marks−2/3 if wrong
Assume a two-level inclusive cache hierarchy, L1 and L2, where L2 is the larger of the two. Consider the following statements.

S1S_1: Read misses in a write through L1 cache do not result in writebacks of dirty lines to the L2.
S2S_2: Write allocate policy must be used in conjunction with write through caches and no-write allocate policy is used with writeback caches.

Which of the following statements is correct?
Show answer without attempting

Answer: A

0/30 correct0 marks

Related topics in Computer Organization and Architecture