GATE Computer ScienceVery hardGATE CS (PYQ pattern)
The logic of a processor takes 48 ns per instruction unpipelined. Pipelining into k stages gives a cycle time of 48/k + 3 ns (latch overhead), but each extra stage adds 0.12 to the CPI, so CPI = 1 + 0.12(k − 1). Which number of stages k minimises the time per instruction?
- A. 8
- B. 15
- C. 22
- D. 11
Correct answer: D. 11
Time(k) = (48/k + 3)(1 + 0.12(k − 1)); evaluating k = 1, 2, 3, … gives its minimum at k = 11 (16.20 ns), while k = 8 gives 16.56 ns and k = 15 gives 16.62 ns.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A branch target buffer (BTB) lets the fetch unit predict taken branches with no bubble when it hits and predicts correctly. Branches are…
- A stack grows downwards in 4-byte units and SP = 0x8000 initially. The instructions PUSH, PUSH, CALL (pushes a 4-byte return address)…
- A Wallace-tree multiplier of 16 × 16 bits must add 16 partial products using layers of 3:2 carry-save adders (each group of 3 rows becomes…
- Instruction frequencies are 0.5, 0.25, 0.125, 0.0625 and 0.0625. What is the minimum average opcode length with a prefix code, and how…
- A cache line holds 8 words. Memory returns the first word 20 cycles after the request and then one word per cycle. Without…
- A physically indexed, physically tagged cache needs the TLB first: a TLB hit takes 1 ns and the cache hit then takes 2 ns. A VIPT cache…