GATE Computer ScienceVery hardGATE CS (PYQ pattern)
An in-order 2-issue processor starts up to two consecutive instructions per cycle. The second is issued with the first only if it has no RAW or WAW dependence on it and they are not both loads/stores. An instruction waits until its source operands are ready: ALU results are usable the next cycle, load results two cycles after issue. For the program [ALU r1<-r2,r3; ALU r4<-r5,r6; ALU r7<-r1,r4; LW r8<-r9; ALU r10<-r8,r7; SW -<-r10,r9; LW r11<-r9; ALU r12<-r11,r11], in how many cycles are all instructions issued (count the cycle of the last issue)?
- A. 4
- B. 8
- C. 7
- D. 9
Correct answer: B. 8
Simulate cycle by cycle: a 1-issue machine needs 10 cycles; dependences and the load latency stop the pairing, so the 2-issue machine needs 8, far from the ideal ⌈8/2⌉ = 4.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A loop body is LW, ADD (uses the loaded value), SW, ADDI, BNE and runs 1000 times on a 5-stage pipeline with forwarding: the ADD right…
- A cache has 64 sets of 4 ways. Exact LRU stores the full recency order of each set using the minimum number of bits; tree pseudo-LRU…
- A fully pipelined floating-point adder has latency 4 cycles and can start one addition every cycle; a dependent addition starts only when…
- Two branches share one 2-bit saturating counter (aliasing in a small predictor table): X is always taken, Y is never taken, and they…
- On a processor with base CPI 1.0, the L1 cache has 40 misses per 1000 instructions. Of these, 10 per 1000 instructions also miss in the L2…
- A physically tagged 64 KB, 4-way cache has 64-byte blocks, 48-bit physical addresses and 4 KB pages. How many tag bits does each line…