GATE / CS ARCHIVE

GATE CSE 2005 / QUESTION 79

Single-bus register addition

Computer Organization & Architecture · Datapath & Control Unit · Full GATE CSE 2005 paper

GATE 2005, Q79 2 marks · MCQ
Report issue

Datapath & Control Unit

Question 79, GATE 2005: Single-bus CPU: MAR, MDR, IR, PC, general registers and ALU input latches S, T share the bus; ALU output returns directly to it. All widths equal; increments must use ALU. Memory read takes two cycles: address→MAR then memory→MDR. After instruction fetch, execute ADD R0, R1 meaning R0←R0+R1. Minimum execution cycles A2; B3; C4; D5.
Question 79, GATE 2005: Single-bus CPU: MAR, MDR, IR, PC, general registers and ALU input latches S, T share the bus; ALU output returns directly to it. All widths equal; increments must use ALU. Memory read takes two cycles: address→MAR then memory→MDR. After instruction fetch, execute ADD R0, R1 meaning R0←R0+R1. Minimum execution cycles A2; B3; C4; D5.
Question 79, GATE 2005: Single-bus CPU: MAR, MDR, IR, PC, general registers and ALU input latches S, T share the bus; ALU output returns directly to it. All widths equal; increments must use ALU. Memory read takes two cycles: address→MAR then memory→MDR. After instruction fetch, execute ADD R0, R1 meaning R0←R0+R1. Minimum execution cycles A2; B3; C4; D5.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

The diagram has separate S and T input latches and a combinational ALU output returning directly to the bus. Cycle 1 transfers R0 to S; cycle 2 transfers R1 to T; cycle 3 transfers ALU(S+T) through the bus to R0. The single bus cannot carry both distinct operands in one cycle, and the result is latched after the two operands are ready. Three execution cycles are necessary and sufficient, option B; instruction fetch is excluded.

A single bus transports only one independently selected register value each cycle. Load S from R0 and T from R1 in separate cycles. Only after both inputs are latched can the combinational sum be selected onto the bus and captured in R0, using a third cycle. This supplies both a feasible schedule and a lower bound: two operand transfers plus a later result transfer cannot fit in two cycles.

Original paper, page 11