GATE Computer ScienceVery hardGATE CS (PYQ pattern)
A non-pipelined processor takes 180 + 120 + 200 + 260 + 100 ps per instruction. Its 5-stage pipelined version adds a 20 ps latch after each stage and clocks at the slowest stage plus latch. Ignoring hazards, what is the smallest number of instructions n for which the pipeline is at least 3 times faster?
- A. 168
- B. 39
- C. 210
- D. 1
Correct answer: A. 168
Non-pipelined: 860n ps. Pipelined: (n + 4) × 280 ps. 860n ≥ 3 × 280 (n + 4) → 20n ≥ 3360 → n ≥ 168. Without the latch (260 ps) it would be 39; using n + 5 cycles gives 210. The asymptotic speed-up is only 860/280 = 3.07, which is why n must be large.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Memory access takes 200 ns. A page fault takes 8 ms to service if the replaced page is clean and 20 ms if it is dirty (it must first be…
- In IEEE 754 single precision with round-to-nearest-even, which of these is correct for computing 1.0 + 2⁻²⁴ and (1 + 2⁻²³) + 2⁻²⁴?
- In IEEE 754 single precision with round-to-nearest-even, let x = 3 × 2⁻¹⁴⁹ (three times the smallest positive denormal). What are x / 2…
- A memory protects data with a SECDED Hamming code (single-error correction plus one overall parity bit for double-error detection). How…
- A virtually indexed, physically tagged cache is 32 KB, 4-way set-associative with 32-byte blocks, and pages are 4 KB. To avoid synonyms…
- A loop reads a[i] and then b[i] for i = 0..1023, where a and b are int arrays (4 bytes) starting at byte addresses 0 and 4096. The data…