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?
Tap to open full sizeFigure description
A data path diagram. Two input registers feed two 2:1 multiplexers: RA (32 bit) feeds down into Mux_A; RB (32 bit) feeds down into Mux_B. Mux_A also receives a second input labeled "immediate value, 32 bit" from the left, with a select line labeled "Select RA/immediate" feeding into Mux_A. Mux_B also receives a second input labeled "immediate value, 32 bit" from the right, with a select line labeled "Select RB/immediate" feeding into Mux_B. The outputs of Mux_A and Mux_B (each 32 bit, marked with slash-32 tick marks) both feed down into a single ALU block (drawn as a trapezoid). The ALU also receives multiple "ALU control" input lines from the left (drawn as a bus of several arrows). The ALU's output (32 bit) feeds down into register RZ (32 bit).
- (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.
- (D)
The data path can only implement arithmetic operations involving one register and one immediate value.