GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A 4-way set-associative cache of 64 KB uses 32-byte blocks and 32-bit physical addresses. Each block has one valid bit and one dirty bit in addition to its tag (ignore replacement bits). The total tag-store size is:
- A. 40960 bits
- B. 38912 bits
- C. 36864 bits
- D. 45056 bits
Correct answer: A. 40960 bits
Blocks = 64 KB/32 B = 2048 and sets = 2048/4 = 512, so offset = 5 bits, index = 9 bits and tag = 32 − 14 = 18 bits. Each block needs 18 + 2 = 20 bits, giving 2048 × 20 = 40960 bits; leaving out the dirty bit gives 38912.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A processor has an L1 hit time of 1 cycle and an L1 miss rate of 10%. An L2 cache has a hit time of 10 cycles and a local miss rate of…
- The 32-bit word 0xC1D80000 is interpreted as an IEEE 754 single-precision number. Its value is:
- An 8-bit ALU adds the two's complement numbers 0x9C and 0xB5. After the addition the carry (C), overflow (V) and sign (N) flags are…
- A disk delivers 4,096,000 bytes/s to memory through a DMA controller in cycle-stealing mode, one 32-bit word at a time. Each word steals…
- Six instructions execute in program order: I1: LW R1, 0(R2) I2: ADD R3, R1, R4 I3: SUB R4, R3, R2 I4: SW R3, 4(R1) I5: AND R1, R4, R3 I6…
- A cache has 4 lines of one word each. The word-address trace 0, 4, 0, 4, 1, 5, 1, 5, 2, 6, 3, 7, 0, 4, 1, 5, 8, 0, 8, 4, 2, 6 is applied…