GATE Computer ScienceHardGATE CS (PYQ pattern)
A memory has 8 low-order interleaved banks (bank = address mod 8). A bank is busy for 6 cycles after starting an access; the processor can issue one access per cycle to a free bank and stalls in order if the target bank is busy. How many cycles are needed to complete 64 accesses to addresses 0, 2, 4, … (stride 2)?
- A. 384
- B. 99
- C. 69
- D. 107
Correct answer: B. 99
Simulate: the bank of access i is (i·2) mod 8, so 4 of the 8 banks are used. That is fewer banks than the busy time, so the banks limit throughput. Result 99 cycles.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- An accumulator machine has memory contents M[100]=300, M[104]=7, M[150]=75, M[200]=150, M[300]=500 and registers R1 = 100, R2 = 4…
- A loop branch is taken 9 times and then falls through (T×9, N), and the whole 10-outcome pattern repeats 5 times. A 2-bit saturating…
- A control unit has 48 control signals partitioned into 6 groups of mutually exclusive signals of sizes 12, 10, 9, 8, 5 and 4. In a…
- A branch outcome stream is TTTTTNN repeated 6 times (42 outcomes). With a 2-bit saturating counter (taken predicted in states 2,3)…
- A direct-mapped cache has 2 lines of 4 words each. A program writes (once each) to word addresses 0, 4, 8, 12, 16, 20, 24, 28 and never…
- A processor encodes branch targets as a 16-bit signed offset relative to the incremented PC in 2-byte instruction units (target = PC + 2 ×…