A partial data path of a processor is given in the figure, where RA, RB, and RZ are 32-bit registers. Which option(s) is/are CORRECT related to arithmetic operations using the data path as shown?
The data path can implement arithmetic operations involving two registers.
The data path can implement arithmetic operations involving one register and one immediate value.
The data path can implement arithmetic operations involving two immediate values.
The data path can only implement arithmetic operations involving one register and one immediate value.
Correct answer: (A) The data path can implement arithmetic operations involving two registers.; (B) The data path can implement arithmetic operations involving one register and one immediate value.; (C) The data path can implement arithmetic operations involving two immediate values.
Explanation
Each mux independently selects a register or an immediate, so all four combinations reach the ALU. Register-register, register-immediate and immediate-immediate operations are all possible, so (D) is false.
More ALU and Control Unit Design questions
GATE 2025 CS (CS2) Q39– For a direct-mapped cache, 4 bits are used for the tag field and 12 bits are used to index…
GATE 2025 CS (CS2) Q61– An application executes 6.4 108 number of instructions in 6.3 seconds. There are four…
GATE 2024 CS (CS1) Q55– The baseline execution time of a program on a 2 GHz single core machine is 100 ns. The…
GATE 2016 CS (CS1) Q43– Consider a carry lookahead adder for adding two n-bit integers, built using gates of…
GATE 2011 CS Q46– Evaluate the shown expression tree on a load-store machine: memory holds a,b,c,d,e; binary…