GATE Computer ScienceHardGATE CS (PYQ pattern)
A non-pipelined datapath takes 100 + 120 + 90 + 150 + 110 ps per instruction. It is cut into those 5 stages with a 10 ps latch after each stage, the clock set by the slowest stage plus latch. A 60-instruction program runs on the pipeline with one 7-cycle stall (cache miss) and one 3-cycle branch-misprediction penalty. What is the speed-up of the pipeline over the non-pipelined datapath for this program?
- A. 3.081
- B. 3.054
- C. 3.340
- D. 2.889
Correct answer: D. 2.889
Non-pipelined: 60 × 570 = 34,200 ps. Pipelined: clock 150 + 10 = 160 ps, cycles = 5 + 60 − 1 + 7 + 3 = 74, time 11,840 ps. Speed-up = 2.889. Dropping the latch gives 3.081, dropping the fill cycles 3.054, dropping the stalls 3.340.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A device streams 2 MB/s (1 MB = 10⁶ B) into memory on a 1.5 GHz CPU. With interrupt-driven I/O every 4-byte word costs 600 CPU cycles…
- A loop reads 128 words at addresses 0, 64, 128, …, 8128 and repeats this whole sweep three times. The cache is 4 KB, 2-way set-associative…
- A 64 MB byte-addressable memory with a 64-bit data bus (8 bytes per bus word) is built from 4M × 4 DRAM chips. How many chips are needed…
- Every memory reference first looks up a TLB (2 ns, hit ratio 96%). On a TLB miss the hardware walks a 3-level page table, each level…
- An x86-like addressing mode computes EA = base + index × scale + displacement, where the displacement is an 8-bit field that is…
- A 32-bit carry-select adder is built from blocks. A block of n bits contains two ripple adders (carry-in 0 and 1) that have their…