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 [LW r1<-r9; LW r2<-r9; ALU r3<-r1,r2; ALU r4<-r3,r1; SW -<-r4,r9; ALU r5<-r6,r7; ALU r8<-r5,r6], in how many cycles are all instructions issued (count the cycle of the last issue)?
- A. 4
- B. 8
- C. 6
- D. 7
Correct answer: D. 7
Simulate cycle by cycle: a 1-issue machine needs 8 cycles; dependences and the load latency stop the pairing, so the 2-issue machine needs 7, far from the ideal ⌈7/2⌉ = 4.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A direct-mapped L1 has hit time 1 cycle and miss rate 5%. A small victim cache catches 30% of the L1 misses at a cost of 2 cycles (instead…
- A 5-stage pipeline with full forwarding has a base CPI of 1. 30% of instructions are loads and half of the loads are immediately followed…
- A 4-way set-associative cache of 64 KB uses 32-byte blocks and 32-bit physical addresses. Each block has one valid bit and one dirty bit…
- A processor has an L1 hit time of 1 cycle and an L1 miss rate of 10%. An L2 cache has a hit time of 10 cycles and a local miss rate of…
- The 32-bit word 0xC1D80000 is interpreted as an IEEE 754 single-precision number. Its value is:
- An 8-bit ALU adds the two's complement numbers 0x9C and 0xB5. After the addition the carry (C), overflow (V) and sign (N) flags are…