Instruction Pipelining questions

Q30

GATE CS 2024 CS-1Instruction PipeliningMSQ1 mark
Consider a 5-stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Register Writeback (WB) stages. Which of the following statements about forwarding is/are CORRECT?
More than one option can be correct.
Show answer without attempting

Answer: A, B, C

Q55

GATE CS 2024 CS-1Instruction PipeliningNAT2 marks
The baseline execution time of a program on a 2 GHz single core machine is 100 nanoseconds (ns). The code corresponding to 90% of the execution time can be fully parallelized. The overhead for using an additional core is 10 ns when running on a multicore system. Assume that all cores in the multicore system run their share of the parallelized code for an equal amount of time.
The number of cores that minimize the execution time of the program is ________
Show answer without attempting

Answer: 3

Q31

GATE CS 2024 CS-2Instruction PipeliningMSQ1 mark
An instruction format has the following structure:
Instruction Number: Opcode destination reg, source reg-1, source reg-2

Consider the following sequence of instructions to be executed in a pipelined processor:

I1: DIV R3, R1, R2
I2: SUB R5, R3, R4
I3: ADD R3, R5, R6
I4: MUL R7, R3, R8

Which of the following statements is/are TRUE?
More than one option can be correct.
Show answer without attempting

Answer: A

Q58

GATE CS 2024 CS-2Instruction PipeliningNAT2 marks
A non-pipelined instruction execution unit operating at 2 GHz takes an average of 6 cycles to execute an instruction of a program P. The unit is then redesigned to operate on a 5-stage pipeline at 2 GHz. Assume that the ideal throughput of the pipelined unit is 1 instruction per cycle. In the execution of program P, 20% instructions incur an average of 2 cycles stall due to data hazards and 20% instructions incur an average of 3 cycles stall due to control hazards. The speedup (rounded off to one decimal place) obtained by the pipelined design over the non-pipelined design is _________
Show answer without attempting

Answer: 2.9 to 3.1

0/40 correct0 marks

Related topics in Computer Organization and Architecture