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 6–10 of 14
An instruction set of a processor has 125 signals which can be divided into 5 groups of mutually exclusive signals as follows:
Group 1 : 20 signals, Group 2 : 70 signals, Group 3 : 2 signals, Group 4 : 10 signals, Group 5 : 23 signals.
How many bits of the control words can be saved by using vertical microprogramming over horizontal microprogramming?
Group 1 : 20 signals, Group 2 : 70 signals, Group 3 : 2 signals, Group 4 : 10 signals, Group 5 : 23 signals.
How many bits of the control words can be saved by using vertical microprogramming over horizontal microprogramming?
Answer: (B)
Horizontal: each control signal gets its own bit in the control word. So the control word is bits.
Vertical: the signals in a group are mutually exclusive, so only one signal in a group is active at a time. So each group can be stored as a binary code and a decoder ( to ) turns the code back into one active signal. A group of signals needs bits:
- Group 1:
- Group 2:
- Group 3:
- Group 4:
- Group 5:
Vertical control word: bits.
Bits saved: .
Answer: (B)
Vertical: the signals in a group are mutually exclusive, so only one signal in a group is active at a time. So each group can be stored as a binary code and a decoder ( to ) turns the code back into one active signal. A group of signals needs bits:
- Group 1:
- Group 2:
- Group 3:
- Group 4:
- Group 5:
Vertical control word: bits.
Bits saved: .
Answer: (B)
A hardwired CPU uses 10 control signals to , in various time steps to , to implement 4 instructions to as shown below:
Which of the following pairs of expressions represent the circuit for generating control signals and respectively?
indicates that the control signal should be generated in time step if the instruction being executed is or )
Which of the following pairs of expressions represent the circuit for generating control signals and respectively?
indicates that the control signal should be generated in time step if the instruction being executed is or )
Answer: (D)
For each signal, list the (time step, instruction) pairs in the table where it is used. Then OR them together.
: used in by all four instructions, and in only by and . It is not used in .
Option A has only in , so it is wrong.
:
- : none.
- : and .
- : only.
- : and .
- : and .
Option B misses the and terms. Option C wrongly puts in and misses . Only D matches both.
Answer: (D)
: used in by all four instructions, and in only by and . It is not used in .
Option A has only in , so it is wrong.
:
- : none.
- : and .
- : only.
- : and .
- : and .
Option B misses the and terms. Option C wrongly puts in and misses . Only D matches both.
Answer: (D)
Consider the following data path of a CPU.
ALU, the bus and all the registers in the data path are of identical size. All operations including incrementation of the PC and the GPRs are to be carried out in the ALU. Two clock cycles are needed for memory read operation - the first one for loading address in the MAR and the next one for loading data from the memory bus into the MDR.
The instruction "call Rn, sub" is a two word instruction. Assuming that PC is incremented during the fetch cycle of the first word of the instruction, its register transfer interpretation is
ALU, the bus and all the registers in the data path are of identical size. All operations including incrementation of the PC and the GPRs are to be carried out in the ALU. Two clock cycles are needed for memory read operation - the first one for loading address in the MAR and the next one for loading data from the memory bus into the MDR.
The instruction "call Rn, sub" is a two word instruction. Assuming that PC is incremented during the fetch cycle of the first word of the instruction, its register transfer interpretation is
Rn < = PC + 1;
PC < = M[PC]; The minimum number of CPU clock cycles needed during the execution cycle of this instruction is:Answer: (B)
- cycle
- (These two actions do not depend on each other, so they can be done in the same cycle.)
- cycle (System BUS)
- is free, and the two actions do not depend on each other.) (Internal BUS)
- rd cycle
So cycles are needed.
A rough sketch:
Correct Answer: B
Consider the following data path of a CPU.
ALU, the bus and all the registers in the data path are of identical size. All operations including incrementation of the PC and the GPRs are to be carried out in the ALU. Two clock cycles are needed for memory read operation - the first one for loading address in the MAR and the next one for loading data from the memory bus into the MDR.
The instruction "add R0, R1" has the register transfer interpretation R0<=R0+R1. The minimum number of clock cycles needed for execution cycle of this instruction is.
ALU, the bus and all the registers in the data path are of identical size. All operations including incrementation of the PC and the GPRs are to be carried out in the ALU. Two clock cycles are needed for memory read operation - the first one for loading address in the MAR and the next one for loading data from the memory bus into the MDR.
The instruction "add R0, R1" has the register transfer interpretation R0<=R0+R1. The minimum number of clock cycles needed for execution cycle of this instruction is.
Answer: (B)
There is one bus, so only one register can put a value on it per clock cycle. The ALU takes its inputs from the registers S and T, and its output goes back to the bus.
Execution of :
1. :
2. :
3. ALU adds , its output goes on the bus, and :
S and T both need the bus, so they cannot be loaded in the same cycle. The add can start only after both are loaded. So the minimum is cycles. The instruction fetch is not counted, since only the execution cycle is asked.
Answer: (B)
Execution of :
1. :
2. :
3. ALU adds , its output goes on the bus, and :
S and T both need the bus, so they cannot be loaded in the same cycle. The add can start only after both are loaded. So the minimum is cycles. The instruction fetch is not counted, since only the execution cycle is asked.
Answer: (B)
Consider a three word machine instruction
The number of memory cycles needed during the execution cycle of the instruction is:
ADD A[R0], @B The first operand (destination) "A[R0]" uses indexed addressing mode with R0 as the index register. The second operand (source) "@B" uses indirect addressing mode. A and B are memory addresses residing at the second and the third words, respectively. The first word of the instruction specifies the opcode, the index register designation and the source and destination addressing modes. During execution of ADD instruction, the two operands are added and stored in the destination (first operand). The number of memory cycles needed during the execution cycle of the instruction is:
Answer: (B)
The three instruction words are brought in during the fetch cycle, so they are not counted. Only the memory accesses of the execution cycle count, for :
1. Read the destination operand from address (indexed mode). The addition of is done in the ALU and needs no memory cycle. This is 1 read.
2. Read the word at address . Indirect mode means this word holds the address of the source operand. 1 read.
3. Read the source operand from that address. 1 read.
4. Write the sum back to the destination address . 1 write.
Total memory cycles.
Answer: (B)
1. Read the destination operand from address (indexed mode). The addition of is done in the ALU and needs no memory cycle. This is 1 read.
2. Read the word at address . Indirect mode means this word holds the address of the source operand. 1 read.
3. Read the source operand from that address. 1 read.
4. Write the sum back to the destination address . 1 write.
Total memory cycles.
Answer: (B)
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