GATE Computer ScienceHardGATE CS (PYQ pattern)
An 8 × 8 matrix is stored in 8 memory banks. A bank is busy for 6 cycles after an access starts (an access started in cycle t completes at the end of t + 5), and the processor starts at most one access per cycle, in order, from cycle 1, waiting when the bank is busy. With plain row-major storage element (r, c) is in bank c; with skewed storage it is in bank (r + c) mod 8. How many cycles does reading all of column 3 take with plain and with skewed storage?
- A. 48 and 13
- B. 48 and 48
- C. 64 and 13
- D. 13 and 48
Correct answer: A. 48 and 13
Plain: all 8 elements of a column sit in bank 3, so accesses start in cycles 1, 7, 13, …, 43 and the last completes at 48. Skewed: column 3 uses banks 3, 4, …, 2 — all different — so one access starts every cycle and the last completes at 8 + 5 = 13. Rows remain conflict-free too (13 cycles).
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- The IEEE 754 single-precision word 0xC1E80000 is multiplied by 2⁻¹³¹ (the result is exact). What is the bit pattern of the product?
- A radix-4 (modified) Booth multiplier handles an unsigned 32-bit multiplier. How many partial products must it generate in the worst case…
- Consider a classic in-order 5-stage pipeline in which registers are read in ID, written in WB, and every instruction passes through all…
- A 6-stage pipeline has stage delays 120, 180, 150, 210, 90 and 160 ps with a 30 ps latch after each stage; the unpipelined machine takes…
- A nested loop's inner back-edge branch has the outcome pattern T T T T N (the inner loop runs 5 times) for each of 4 outer iterations (20…
- The expression a − (b − (c − (d − e))) is evaluated by a stack machine in which a binary operator takes the left operand from the…