A partial data path of a processor is given in the figure, where and are -bit registers. Which option(s) is/are CORRECT related to arithmetic operations using the data path as shown?


View worked solution
Answer: A;B;C
Based on the given partial data path of the processor:
- The ALU has two inputs, each preceded by a multiplexer (MUX) that selects the operand source.
- MUX 1 (at the first ALU input) can select between the output of register and an immediate value.
- MUX 2 (at the second ALU input) can select between the output of register and an immediate value.
By configuring the control signals of these multiplexers, we can achieve the following combinations of operands for the ALU:
- Two Registers: Selecting register from MUX 1 and register from MUX 2 allows arithmetic operations involving two registers. Thus, Option A is correct.
- One Register and One Immediate Value: Selecting register (or ) from one MUX and an immediate value from the other MUX allows arithmetic operations involving one register and one immediate value. Thus, Option B is correct.
- Two Immediate Values: Selecting immediate values from both MUX 1 and MUX 2 allows arithmetic operations involving two immediate values. Thus, Option C is correct.
Since the data path can perform all three types of operations, Option D is incorrect.
Free practice · Your answers on this page are not saved.
