GATE / CS ARCHIVE

GATE CSE 2025 SET 1 / QUESTION 27

Enumerating operand choices in a datapath

Computer Organization & Architecture · Datapath & Control Unit · Full GATE CSE 2025 Set 1 paper

GATE 2025 Set 1, Q27 1 mark · MSQ
Report issue

Datapath & Control Unit

Question 27, GATE 2025: Two independent multiplexers feed an ALU. Mux_A selects either 32-bit register RA or a 32-bit immediate; Mux_B selects either 32-bit register RB or another 32-bit immediate. The ALU writes a 32-bit register RZ. Which are supported? A two register operands; B one register and one immediate; C two immediate operands; D only one-register/one-immediate operations.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, B, C

Approach: Enumerate independent multiplexer settings instead of assuming the instruction formats of a familiar processor.
Selecting RA at Mux_A and RB at Mux_B gives two register operands, so A is supported. Selecting RA and the B-side immediate, or the A-side immediate and RB, gives one register and one immediate; B is supported. Selecting the immediate input at both multiplexers gives two immediate operands, so C is supported as well.
All selected values are 32 bits and can be delivered simultaneously to the ALU, whose result goes to RZ. No data connection in the shown partial datapath forces a mux to choose a register merely because the other mux chose an immediate.
Thus select A,B,C. D is false because its word “only” excludes the other two combinations. This is a claim about the available datapath connections, not proof that a particular instruction-set encoding actually exposes every such combination.

Original paper, page 27 · Answer key