GATE Computer ScienceHardGATE CS (PYQ pattern)
An unpipelined multiplier is busy for 4 cycles starting in the cycle a multiply issues; a later multiply that reaches issue while it is busy waits, and all other instructions issue one per cycle. 10% of instructions are multiplies. After a multiply, the next instruction is another multiply in 40% of cases; in a further 20% of cases the next instruction is not a multiply but the one after it is. Ignore cases with three multiplies within four instructions. What is the CPI (ideal 1)?
- A. 1.16
- B. 1.12
- C. 1.18
- D. 1.30
Correct answer: A. 1.16
A multiply issued at t frees the unit at t + 4. One right behind it would issue at t + 1 → 3 stalls; one two places behind (t + 2) → 2 stalls. CPI = 1 + 0.1 × (0.4 × 3 + 0.2 × 2) = 1.16. Counting only back-to-back pairs gives 1.12; charging 3 for both cases gives 1.18.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- Which of the following are correct for addressing modes? I. PC-relative addressing helps make code position independent. II. Register…
- Each interrupt costs 5000 cycles of fixed overhead (save, vector, restore) and its handler then spends 2000 cycles on every event it…
- A program sums a 64 × 64 matrix of 4-byte ints stored in row-major order starting at address 0, once row by row and once column by column…
- A processor makes one instruction fetch per instruction and 0.36 data references per instruction. Option S has split 16 KB I- and D-caches…
- Which of these 8-bit two's-complement operations overflow as signed arithmetic? I. 0x80 − 0x01. II. 0x00 − 0x80. III. 0x7F + 0x80. IV…
- An 8-bit x86-style SUB computes 0x01 − 0xFF. In this convention CF = 1 exactly when the unsigned subtraction needs a borrow, OF = signed…