ALU Data Path and Control Unit · Computer Organization and Architecture
14 questions · asked in 9 of 27 years (2000–2026)
MCQ 12 · MSQ 1 · NAT 11-mark 11 · 2-mark 3
2000Questions per year2026
Questions 1–5 of 14
A partial data path of a processor is given in the figure, where , , and are 32-bit registers. Which option(s) is/are CORRECT related to arithmetic operations using the data path as shown?
One or more options are correct.
Answer: (A), (B), (C)
The data path has these parts:
- Two 32-bit registers: RA and RB.
- Two multiplexers (Mux_A and Mux_B).
- Each multiplexer can pick one of two inputs: - the value of its own register, or - a 32-bit immediate value.
- The picked inputs go to the ALU, and the ALU output is stored in register RZ.
So the ALU can get these operand pairs:
Now check each statement.
Option A: The data path can implement arithmetic operations involving two registers.
Mux_A can pick RA and Mux_B can pick RB, so the ALU can do operations like
So Option A is Correct.
Option B: The data path can implement arithmetic operations involving one register and one immediate value.
Examples:
or
So Option B is Correct.
Option C: The data path can implement arithmetic operations involving two immediate values. Each multiplexer can pick its immediate input on its own, so the ALU can do operations like
So Option C is Correct.
Option D: The data path can only implement arithmetic operations involving one register and one immediate value. This is false because the data path also supports:
- Register + Register
- Immediate + Immediate
- Register + Immediate
So Option D is Incorrect.
Answer: (A), (B), (C)
- Two 32-bit registers: RA and RB.
- Two multiplexers (Mux_A and Mux_B).
- Each multiplexer can pick one of two inputs: - the value of its own register, or - a 32-bit immediate value.
- The picked inputs go to the ALU, and the ALU output is stored in register RZ.
So the ALU can get these operand pairs:
| Mux_A | Mux_B | Operands |
|---|---|---|
| RA | RB | Two registers |
| RA | Immediate | One register + one immediate |
| Immediate | RB | One immediate + one register |
| Immediate | Immediate | Two immediate values |
Now check each statement.
Option A: The data path can implement arithmetic operations involving two registers.
Mux_A can pick RA and Mux_B can pick RB, so the ALU can do operations like
So Option A is Correct.
Option B: The data path can implement arithmetic operations involving one register and one immediate value.
Examples:
or
So Option B is Correct.
Option C: The data path can implement arithmetic operations involving two immediate values. Each multiplexer can pick its immediate input on its own, so the ALU can do operations like
So Option C is Correct.
Option D: The data path can only implement arithmetic operations involving one register and one immediate value. This is false because the data path also supports:
- Register + Register
- Immediate + Immediate
- Register + Immediate
So Option D is Incorrect.
Answer: (A), (B), (C)
Consider a digital display system (DDS) shown in the figure that displays the contents of register X. A 16-bit code word is used to load a word in X, either from S or from R. S is a 1024-word memory segment and R is a 32-word register file. Based on the value of mode bit M, T selects an input word to load in X. P and Q interface with the corresponding bits in the code word to choose the addressed word. Which one of the following represents the functionality of P, Q, and T?
Answer: (C)
Match each block to its job:
- S has 1024 words, so its address needs bits. P takes these 10 bits and must select exactly one of the 1024 words, so P is a decoder.
- R has 32 words, so its address needs bits. So Q is a decoder.
- T chooses one of two inputs (the word from S or the word from R) using the mode bit M, so T is a 2 : 1 multiplexer.
The code word is bits (M, S-address, R-address), which agrees with the 16-bit code word.
Answer: (C)
- S has 1024 words, so its address needs bits. P takes these 10 bits and must select exactly one of the 1024 words, so P is a decoder.
- R has 32 words, so its address needs bits. So Q is a decoder.
- T chooses one of two inputs (the word from S or the word from R) using the mode bit M, so T is a 2 : 1 multiplexer.
The code word is bits (M, S-address, R-address), which agrees with the 16-bit code word.
Answer: (C)
Consider a main memory system that consists of 8 memory modules attached to the system bus, which is one word wide. When a write request is made, the bus is occupied for 100 nanoseconds (ns) by the data, address, and control signals. During the same 100 ns, and for 500 ns thereafter, the addressed memory module executes one cycle accepting and storing the data. The (internal) operation of different memory modules may overlap in time, but only one request can be on the bus at any time. The maximum number of stores (of one word each) that can be initiated in 1 millisecond is ____________
Answer: 10000
A store keeps the bus busy for 100 ns, and its module stays busy for 600 ns. The 8 modules are used one after another. So a module gets its next request only after 8 100 = 800 ns, which is 600 ns. This means the modules never make a request wait.
The bus is the limit here. Only one store can start every 100 ns.
Number of stores in 1 ms:
Answer: 10000
The bus is the limit here. Only one store can start every 100 ns.
Number of stores in 1 ms:
Answer: 10000
Consider a CPU where all the instructions require 7 clock cycles to complete execution. There are 140 instructions in the instruction set. It is found that 125 control signals are needed to be generated by the control unit. While designing the horizontal microprogrammed control unit, single address field format is used for branch control logic. What is the minimum size of the control word and control address register?
Answer: (D)
Every instruction takes 7 clock cycles, so the control unit has to give different sets of control signals. Each set is one microinstruction, so the control memory has 980 words.
With a single address field for branch control, the address of the next microinstruction is kept in the control word. To address 980 words we need bits, because and .
- Control address register: it holds an address of the control memory, so it is 10 bits.
- Control word: in horizontal microprogramming there is one bit for each control signal, so 125 bits, plus the 10-bit address field. That gives bits.
The sizes are 135 and 10.
Answer: (D)
With a single address field for branch control, the address of the next microinstruction is kept in the control word. To address 980 words we need bits, because and .
- Control address register: it holds an address of the control memory, so it is 10 bits.
- Control word: in horizontal microprogramming there is one bit for each control signal, so 125 bits, plus the 10-bit address field. That gives bits.
The sizes are 135 and 10.
Answer: (D)
The data path shown in the figure computes the number of 1s in the 32-bit input word corresponding to an unsigned even integer stored in the shift register.
The unsigned counter, initially zero, is incremented if the most significant bit of the shift register is 1.
The microprogram for the control is shown in the table below with missing control words for microinstructions .
The counter width (k), the number of missing microinstructions (n), and the control word for microinstructions are, respectively,
The unsigned counter, initially zero, is incremented if the most significant bit of the shift register is 1.
The microprogram for the control is shown in the table below with missing control words for microinstructions .
The counter width (k), the number of missing microinstructions (n), and the control word for microinstructions are, respectively,
Answer: (D)
Each missing microinstruction must shift the register left by one bit and let the counter add one if the bit at the MSB is 1.
Number of microinstructions. The input is an unsigned even integer, so its LSB (bit 0) is always . Only bits 31 down to 1 can be 1. Each shift brings the next bit to the MSB position, so shifts check all of them: . A 32nd shift would look only at the LSB, which is 0.
Counter width. The count of 1s is at most , because bit 0 is 0. , so bits are enough. (A count of 32 would need 6 bits, but it cannot occur.)
Control word (reset counter, shift left, load output):
- reset counter , otherwise the count would be cleared (it is only in BEGIN).
- shift left , to bring the next bit to the MSB.
- load output , since the result is loaded only in END.
So the word is .
. Option C has , which would load the output on every step, and A and B have the wrong and .
Answer: (D)
Number of microinstructions. The input is an unsigned even integer, so its LSB (bit 0) is always . Only bits 31 down to 1 can be 1. Each shift brings the next bit to the MSB position, so shifts check all of them: . A 32nd shift would look only at the LSB, which is 0.
Counter width. The count of 1s is at most , because bit 0 is 0. , so bits are enough. (A count of 32 would need 6 bits, but it cannot occur.)
Control word (reset counter, shift left, load output):
- reset counter , otherwise the count would be cleared (it is only in BEGIN).
- shift left , to bring the next bit to the MSB.
- load output , since the result is loaded only in END.
So the word is .
. Option C has , which would load the output on every step, and A and B have the wrong and .
Answer: (D)
Keep practising
Topics in Computer Organization and Architecture
Machine InstructionAddressing Modes
ALU Data Path and Control UnitYou are here
Memory Chip DesignCache MemorySecondary StorageIO InterfaceInterruptPipeline Processor