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 11–14 of 14
A CPU has only three instructions I1, I2 and I3, which use the following signals in time steps T1-T5:
I1 :
T1 : Ain, Bout, Cin
T2 : PCout, Bin
T3 : Zout, Ain
T4 : Bin, Cout
T5 : End
I2 :
T1 : Cin, Bout, Din
T2 : Aout, Bin
T3 : Zout, Ain
T4 : Bin, Cout
T5 : End
I3 :
T1 : Din, Aout
T2 : Ain, Bout
T3 : Zout, Ain
T4 : Dout, Ain
T5 : End
Which of the following logic functions will generate the hardwired control for the signal Ain ?
I1 :
T1 : Ain, Bout, Cin
T2 : PCout, Bin
T3 : Zout, Ain
T4 : Bin, Cout
T5 : End
I2 :
T1 : Cin, Bout, Din
T2 : Aout, Bin
T3 : Zout, Ain
T4 : Bin, Cout
T5 : End
I3 :
T1 : Din, Aout
T2 : Ain, Bout
T3 : Zout, Ain
T4 : Dout, Ain
T5 : End
Which of the following logic functions will generate the hardwired control for the signal Ain ?
Answer: (A)
We only need to find which option gives every time is , and gives in all other cases.
Ain is active () in of and . It is also active in of , and in and of . So the answer will be
The CPU has only instructions. So can be replaced with (we do not need to check which instruction it is, as is active in time step of all the instructions).
So,
The answer is Option (A).
The microinstructions stored in the control memory of a processor have a width of 26 bits. Each microinstruction is divided into three fields: a micro-operation field of 13 bits, a next address field (X), and a MUX select field (Y). There are 8 status bits in the inputs of the MUX.
How many bits are there in the X and Y fields, and what is the size of the control memory in number of words?
How many bits are there in the X and Y fields, and what is the size of the control memory in number of words?
Answer: (A)
Here is the number of bits that select among the 8 different states of the multiplexer
is the number of bits needed to address the control memory.
We get by using and .
The size of the control memory
Correct Answer:
Horizontal microprogramming
Answer: (D)
In horizontal microprogramming each bit of the microinstruction directly controls one control signal. Check each statement:
- (A) Since every signal has its own bit, the bits drive the hardware directly and no decoder is needed. True.
- (B) One bit per signal makes the microinstruction wide. Vertical microprogramming encodes the signals in a few fields, which needs decoders but gives shorter microinstructions. So horizontal ones are larger. True.
- (C) One bit per control signal is the definition of horizontal microcode. True.
All three are true.
Answer: (D)
- (A) Since every signal has its own bit, the bits drive the hardware directly and no decoder is needed. True.
- (B) One bit per signal makes the microinstruction wide. Vertical microprogramming encodes the signals in a few fields, which needs decoders but gives shorter microinstructions. So horizontal ones are larger. True.
- (C) One bit per control signal is the definition of horizontal microcode. True.
All three are true.
Answer: (D)
Consider the following data path of a simple non-pipelined CPU. The registers A, B, A1, A2, MDR, the bus and the ALU are 8-bit wide. SP and MAR are 16- bit registers. The MUX is of size 8x(2:1) and the DEMUX is of size 8x(1:2). Each memory operation takes 2 CPU clock cycles and uses MAR (Memory Address Register) and MDR (Memory Data Register). SP can be decremented locally.
The CPU instruction "push r", where r = A or B, has the specification
M[SP] r
SP SP - 1
How many CPU clock cycles are needed to execute the "push r" instruction ?
The CPU instruction "push r", where r = A or B, has the specification
M[SP] r
SP SP - 1
How many CPU clock cycles are needed to execute the "push r" instruction ?
Answer: (D)
Here "push r" stores the register r into memory at the address in SP, and then decrements SP.
Facts from the data path: there is one 8-bit bus, SP and MAR are 16-bit, and each memory operation takes 2 clock cycles.
1. : MUX puts the low byte of SP on the bus, and DEMUX loads it into the low half of MAR.
2. : the same for the high byte of SP and the high half of MAR. So takes 2 cycles.
3. : over the bus. It cannot be done earlier, because the bus is busy in and .
4. : memory write , which takes 2 cycles.
SP can be decremented locally, so runs in parallel with one of these cycles and adds none.
Total cycles.
Answer: (D)
Facts from the data path: there is one 8-bit bus, SP and MAR are 16-bit, and each memory operation takes 2 clock cycles.
1. : MUX puts the low byte of SP on the bus, and DEMUX loads it into the low half of MAR.
2. : the same for the high byte of SP and the high half of MAR. So takes 2 cycles.
3. : over the bus. It cannot be done earlier, because the bus is busy in and .
4. : memory write , which takes 2 cycles.
SP can be decremented locally, so runs in parallel with one of these cycles and adds none.
Total cycles.
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