GATE Computer ScienceHardNIELIT Scientist B
A classic 5-stage pipeline (IF, ID, EX, MEM, WB) has no forwarding; the register file writes in the first half of a cycle and reads in the second half. Instructions in order: I1: r1 ← mem, I2: r3 ← r1 + r2, I3: r4 ← r3 − r1, I4: r5 ← r4 & r3, I5: r6 ← r7 | r8. I2 to I4 cannot read operands before the producer's WB. How many cycles from the IF of I1 until WB of I5 completes?
- A. 13
- B. 17
- C. 19
- D. 15
Correct answer: D. 15
I2 waits until I1's WB, I3 until I2's WB, I4 until I3's WB, and I5 follows in order; the last WB falls at cycle 15.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- What decimal value does the single-precision IEEE 754 pattern 0xC1A40000 represent?
- Virtual memory uses a two-level page table. A TLB lookup takes 10 ns with a 90% hit rate, and every main-memory access takes 100 ns. On a…
- An 8-bit instruction format has 3-bit address fields and expanding opcodes. There are 3 two-address instructions and 8 zero-address…
- Booth's algorithm multiplies using the 8-bit multiplier 01101110 (with an implied 0 to the right of the LSB). How many of the 8 steps…
- A microprogrammed control unit has four groups of mutually exclusive control signals containing 15, 7, 31 and 3 signals; each group is…
- A write-back, write-allocate, direct-mapped cache has 4 one-block lines (line = block number mod 4) and starts empty. The block accesses…