GATE / CS ARCHIVE

SUBJECT COLLECTION

Computer Organization & Architecture · Datapath & Control Unit

13 questions, newest first

GATE CSE has asked 13 questions on Datapath & Control Unit (Computer Organization & Architecture) from 1991 to 2025, in 11 of the 46 papers; the most recent is in GATE CSE 2025 Set 1. In the last five years it carried 0.1 marks per 100-mark paper on average, against 0.2 since 2003. Since 2014 the questions have been 1 MSQ and 1 MCQ. 1 group of questions here are solved the same way; “One per method” keeps the newest of each.

Browse topics
1 mark · MSQ
Report issue

Enumerating operand choices in a datapath

Datapath & Control Unit

Question 27, GATE 2025: Two independent multiplexers feed an ALU. Mux_A selects either 32-bit register RA or a 32-bit immediate; Mux_B selects either 32-bit register RB or another 32-bit immediate. The ALU writes a 32-bit register RZ. Which are supported? A two register operands; B one register and one immediate; C two immediate operands; D only one-register/one-immediate operations.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, B, C

Approach: Enumerate independent multiplexer settings instead of assuming the instruction formats of a familiar processor.
Selecting RA at Mux_A and RB at Mux_B gives two register operands, so A is supported. Selecting RA and the B-side immediate, or the A-side immediate and RB, gives one register and one immediate; B is supported. Selecting the immediate input at both multiplexers gives two immediate operands, so C is supported as well.
All selected values are 32 bits and can be delivered simultaneously to the ALU, whose result goes to RZ. No data connection in the shown partial datapath forces a mux to choose a register merely because the other mux chose an immediate.
Thus select A,B,C. D is false because its word “only” excludes the other two combinations. This is a claim about the available datapath connections, not proof that a particular instruction-set encoding actually exposes every such combination.

Original paper, page 27 · Answer key

1 mark · MCQ
Report issue

Datapath & Control Unit

Question 4, GATE 2020: Execute R0←R1+R2 on a single-bus datapath. Figure equivalent: bus connects MAR, MDR, IR, PC and R0–R7; one ALU input comes directly from bus, the other from TEMP1 (loaded from bus); ALU output enters TEMP2, which can drive bus. MAR addresses memory; MDR exchanges memory data. PC increment is handled. Steps (r read,w write): 1 R2_r,TEMP1_r,ALU_add,TEMP2_w; 2 R1_r,TEMP1_w; 3 PC_r,MAR_w,MEM_r; 4 TEMP2_r,R0_w; 5 MDR_r,IR_w. Correct order? A 2,1,4,5,3; B 1,2,4,3,5; C 3,5,2,1,4; D 3,5,1,2,4.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Worked explanation

Follow data dependencies rather than memorizing an instruction cycle. The instruction register cannot receive the requested instruction before the PC address has been sent to memory and the result has reached MDR, so 3 precedes 5. To add two register values on one bus, first save one operand in TEMP1: step 2 must precede step 1. The ALU result is latched into TEMP2 before R0 can receive it, so 1 precedes 4. Fetch followed by execution therefore gives 3→5→2→1→4. D violates the TEMP1 dependency; A,B attempt execution before the fetch sequence.

Derivation and answer

Fetch the instruction with PC→MAR and memory read(step3), then MDR→IR(step5). Load R1 into TEMP1(step2), add R2 through the bus with TEMP1 and store the result in TEMP2(step1), then TEMP2→R0(step4). Therefore3, 5, 2, 1, 4, C.

Original paper, page 4 · Answer key

2 marks · MCQ
Report issue

Single-bus register addition

Datapath & Control Unit

Question 79, GATE 2005: Single-bus CPU: MAR, MDR, IR, PC, general registers and ALU input latches S, T share the bus; ALU output returns directly to it. All widths equal; increments must use ALU. Memory read takes two cycles: address→MAR then memory→MDR. After instruction fetch, execute ADD R0, R1 meaning R0←R0+R1. Minimum execution cycles A2; B3; C4; D5.
Question 79, GATE 2005: Single-bus CPU: MAR, MDR, IR, PC, general registers and ALU input latches S, T share the bus; ALU output returns directly to it. All widths equal; increments must use ALU. Memory read takes two cycles: address→MAR then memory→MDR. After instruction fetch, execute ADD R0, R1 meaning R0←R0+R1. Minimum execution cycles A2; B3; C4; D5.
Question 79, GATE 2005: Single-bus CPU: MAR, MDR, IR, PC, general registers and ALU input latches S, T share the bus; ALU output returns directly to it. All widths equal; increments must use ALU. Memory read takes two cycles: address→MAR then memory→MDR. After instruction fetch, execute ADD R0, R1 meaning R0←R0+R1. Minimum execution cycles A2; B3; C4; D5.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

The diagram has separate S and T input latches and a combinational ALU output returning directly to the bus. Cycle 1 transfers R0 to S; cycle 2 transfers R1 to T; cycle 3 transfers ALU(S+T) through the bus to R0. The single bus cannot carry both distinct operands in one cycle, and the result is latched after the two operands are ready. Three execution cycles are necessary and sufficient, option B; instruction fetch is excluded.

A single bus transports only one independently selected register value each cycle. Load S from R0 and T from R1 in separate cycles. Only after both inputs are latched can the combinational sum be selected onto the bus and captured in R0, using a third cycle. This supplies both a feasible schedule and a lower bound: two operand transfers plus a later result transfer cannot fit in two cycles.

Original paper, page 11

2 marks · MCQ
Report issue

Single-bus subroutine call

Datapath & Control Unit

Question 80, GATE 2005: Single-bus CPU: MAR, MDR, IR, PC, general registers and ALU input latches S, T share the bus; ALU output returns directly to it. All widths equal; increments must use ALU. Memory read takes two cycles: address→MAR then memory→MDR. Two-word CALL Rn, sub: opcode fetch already increments PC to second word. Execute Rn←PC+1 and PC←M[PC]. Minimum execution cycles A2; B3; C4; D5.
Question 80, GATE 2005: Single-bus CPU: MAR, MDR, IR, PC, general registers and ALU input latches S, T share the bus; ALU output returns directly to it. All widths equal; increments must use ALU. Memory read takes two cycles: address→MAR then memory→MDR. Two-word CALL Rn, sub: opcode fetch already increments PC to second word. Execute Rn←PC+1 and PC←M[PC]. Minimum execution cycles A2; B3; C4; D5.
Question 80, GATE 2005: Single-bus CPU: MAR, MDR, IR, PC, general registers and ALU input latches S, T share the bus; ALU output returns directly to it. All widths equal; increments must use ALU. Memory read takes two cycles: address→MAR then memory→MDR. Two-word CALL Rn, sub: opcode fetch already increments PC to second word. Execute Rn←PC+1 and PC←M[PC]. Minimum execution cycles A2; B3; C4; D5.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

At execution start PC addresses the second instruction word. A four-cycle schedule is: (1) broadcast PC to MAR and S; (2) read M[MAR] into MDR while loading the increment operand 1 into T; (3) send ALU(S+T) to Rn; (4) send MDR to PC. The external memory read does not occupy the internal bus carrying 1 in cycle 2. Three bus transfers of PC, return address, and target plus preparation of the increment require four cycles in this latched-input datapath. Thus C (4), assuming the usual constant-one ALU input/control needed for the specified increment operation, which the schematic does not explicitly draw.

Two different results must be preserved: the incremented return address and the target stored in memory. Broadcast PC to MAR and S together in the first cycle, since both need the same value. In the second, memory fills MDR while the internal bus supplies the increment constant to T. The third transfers S+T to Rn; the fourth transfers MDR to PC. Memory’s external transfer can overlap internal-bus work; counting it as another serialized internal transfer would overestimate. The constant input is a conventional control assumption explicitly identified.

Original paper, page 11

2 marks · MCQ
Report issue

Microinstruction address and multiplexer fields

Datapath & Control Unit

Question 67, GATE 2004: A 26-bit microinstruction has a 13-bit micro-operation field, next-address field X and MUX-select field Y. A MUX selects one of eight status bits. Figure connectivity: X feeds the control address register; Y selects the status MUX; the selected status controls address-register load versus increment; that register addresses control memory. What are (X bits,Y bits,control-memory words)?
Options:
(A) 10,3,1024
(B) 8,5,256
(C) 5,8,2048
(D) 10,3,512
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. An eight-input status multiplexer needs Y=log2(8)=3 select bits. Of the 26 microinstruction bits, 13 encode operations, leaving X=26−13−3=10 next-address bits.

2. An address space of ten bits contains 210=1024 control-memory words. Thus (X,Y,words)=(10,3,1024), A.

3. Teaching check: The select field encodes which of eight status lines is used, so it needs three bits rather than eight. The next-address width is what addresses control-memory words; the microinstruction width determines word size, not the number of words.

Original paper, page 10

2 marks · MCQ
Report issue

Horizontal microinstruction encoding

Datapath & Control Unit

Question 2.7, GATE 2002: Which statement describes horizontal microprogramming?
(A) Signal decoders are unnecessary.
(B) Microinstructions are larger than in vertical microprogramming.
(C) Each control signal has its own bit.
(D) All of these.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Step 1: Compare direct bits with encoded control fields.

Step 2: With k directly controlled signals, a fully horizontal word can devote k bits to asserting them. A vertical word can use a shorter encoded field for mutually exclusive alternatives, but then requires decoding to recover the individual control lines. The width-versus-decoder tradeoff explains why all three descriptions hold together in the stated model.

Conclusion: In the fully horizontal model, each control signal has its own bit, so no encoded-control-field decoder is needed. This makes instructions wider than a vertical encoding. All three statements apply to that model, D; sequencing/address decoding is not thereby eliminated.

Original paper, page 4

2 marks · MCQ
Report issue

Microcycles for push on an eight-bit datapath

Datapath & Control Unit

Question 2.13, GATE 2001: An unpipelined CPU has an 8-bit bus, ALU, general registers and MDR, but 16-bit SP and MAR. Byte-select mux/demux connect SP and MAR to the bus; memory operations take two cycles; SP can decrement locally. For push r, perform M[SP]←r then SP←SP−1. How many execution cycles: 2,3,4,5? The complete datapath is linked.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Step 1: The 16-bit SP must be copied to 16-bit MAR through an 8-bit bus. This requires two distinct bus transfers, one per byte, using the mux/demux controls.

Step 2: Copy the 8-bit register r to MDR in a third cycle. The memory write then uses two cycles with MAR supplying the address and MDR the byte. SP can be decremented locally in parallel after its old value has been transferred, so no additional bus cycle is needed for that decrement.

Total 2+1+2=5 cycles, D, in the standard clocked-transfer schedule with memory write starting after MAR/MDR are loaded. Instruction-fetch cycles are not part of this execution count.

Original paper, page 5

2 marks · MSQ
Report issue

Control-unit speed ordering

Datapath & Control Unit

Question 2.19, GATE 1999: Order hardwired control,horizontal microprogramming,vertical microprogramming from fastest to slowest.
Question 2.19, GATE 1999: Order hardwired control,horizontal microprogramming,vertical microprogramming from fastest to slowest.
Tap to enlarge
Select all that apply
Answer & solution

Answer: B (no official key was published)

Hardwired control generates signals through dedicated logic without fetching a microinstruction for each control step. Horizontal microcode exposes many control fields directly, reducing decoding and allowing parallel control actions. Vertical microcode is more densely encoded and needs additional decoding, often with less control parallelism. Thus the traditional comparable-design order is hardwired, horizontal, vertical, option B. This is an architectural rule of thumb, not a universal measured ordering across unrelated implementations or clock technologies.

Original paper, page 5

2 marks · MCQ
Report issue

Encoding micro-operation choices

Datapath & Control Unit

Question 5.3, GATE 1997: A microinstruction selects none or one of three operations of kind 1, and any subset of six operations of kind 2. Minimum bits among 9, 5, 8, none?
Tap to enlarge
Your answer
Answer & solution

Answer: C: 8 (no official key was published)

The first field has four possibilities: no operation or one of three. It requires log 2 4=2 bits. The six independently selectable operations have 26 possible subsets, including none, so they require 6 bits. Together there are 4·64=256 combinations, requiring 8 bits, which the 2+6 field construction achieves. Thus C. Encoding the second field as one of seven choices would incorrectly forbid simultaneous operations.

Original paper, page 5

2 marks · MCQ
Report issue

Encoding at most two active controls

Datapath & Control Unit

Question 2.25, GATE 1996: A microprogram unit has 25 control signals, at most two active in a word. Find the minimum bits; listed choices are 2,25,10,12.
Tap to enlarge
Your answer
Answer & solution

Answer: 9 unrestricted; C:10 only under a two-selector-field architecture (no official key was published)

The legal output patterns are no active signal, one of 25 single signals, or one of C(25,2)=300 pairs: 326 patterns altogether. An unrestricted binary code therefore needs ceil(log₂326)=9 bits, since 256<326≤512. A decoder can map 326 of the 512 codes to these patterns, proving sufficiency. The listed 10-bit choice instead uses two independent five-bit selectors, each able to select one of 25 signals or a no-op. That practical architecture is sufficient but not information-theoretically minimal. No such field restriction is stated, so the missing 9-bit option is an explicit question/model discrepancy.

Original paper, page 7

Report issue

Properties of a bit-slice datapath

Datapath & Control Unit

Question 2(iii), GATE 1992: Which bit-slice claims hold: cascade for word length; speed independent of width; no standalone program counter; only the CPU datapath?
Question 2(iii), GATE 1992: Which bit-slice claims hold: cascade for word length; speed independent of width; no standalone program counter; only the CPU datapath?
Tap to enlarge
Select all that apply
Answer & solution

Answer: A, C, D for conventional ALU/register slices (no official key was published)

A bit-slice component implements a small-width arithmetic/register datapath. Cascading slices constructs a wider datapath, so A holds. Control sequencing and program-counter functions are normally supplied externally to the datapath slice, motivating C and D. Speed is not generally width-independent: carry propagation and inter-slice wiring can increase delay unless additional carry-lookahead structures are used. These claims refer to conventional datapath slices rather than every chip ever marketed in a bit-slice family; specialized sequencer components can supply the omitted control functions.

Original paper, page 2

4 marks · Descriptive
Report issue

Fetch and indexed effective-address transfers

Datapath & Control Unit

Question 7(a), GATE 1991: A single-address CPU has 16-bit instructions; the low 8 bits are the operand-address field. Design a hardwired fetch cycle which also forms the effective address for an indexed instruction. The reproduction does not specify memory word size, address width, index-mode encoding, or a memory-ready protocol. Give register transfers.
Question 7(a), GATE 1991: A single-address CPU has 16-bit instructions; the low 8 bits are the operand-address field. Design a hardwired fetch cycle which also forms the effective address for an indexed instruction. The reproduction does not specify memory word size, address width, index-mode encoding, or a memory-ready protocol. Give register transfers.
Question 7(a), GATE 1991: A single-address CPU has 16-bit instructions; the low 8 bits are the operand-address field. Design a hardwired fetch cycle which also forms the effective address for an indexed instruction. The reproduction does not specify memory word size, address width, index-mode encoding, or a memory-ready protocol. Give register transfers.
Tap to enlarge
Answer & solution

Answer: MAR←PC; read instruction; IR←MDR, PC←PC+1; EA←zero_extend(IR[7:0])+(indexed?X:0), for word-addressed memory. (no official key was published)

Use a word-addressed memory returning one 16-bit instruction per access, an address-width w≥8, PC, MAR, MDR, IR, index register X and effective-address register EA. Let I be the decoded indexed-mode condition, and Z(IR[7:0]) the zero-extended address field. These are explicit implementation assumptions, not facts supplied by the question.

T0: MAR←PC.
T1: assert memory READ; wait until READY; MDR←M[MAR].
T2: IR←MDR; PC←PC+1.
T3: EA←Z(IR[7:0]) + (I ? X : 0), modulo 2w; finish fetch.

The operand field must come from the newly loaded IR, so effective-address formation follows T2. PC increment is independent of indexing: indexing modifies the operand address, not the address of the next instruction. The index flag is obtained from the instruction’s opcode/mode decoding; assigning it a particular bit without specification would be unjustified.

If memory is byte-addressed with an 8-bit data bus, use two reads, assemble the two bytes according to the selected endianness, and advance PC by two instead. If memory has a fixed guaranteed cycle, the READY self-loop can be replaced by the corresponding fixed number of timing states. These implementation variants do not change the essential separation of fetch, decode and address formation.

Original paper, page 5

6 marks · Descriptive
Report issue

Hardwired fetch controller and datapath

Datapath & Control Unit

Question 7(b), GATE 1991: A single-address CPU has 16-bit instructions; the low 8 bits are the operand-address field. Design a hardwired fetch cycle which also forms the effective address for an indexed instruction. The reproduction does not specify memory word size, address width, index-mode encoding, or a memory-ready protocol. Draw the controller logic and datapath.
Question 7(b), GATE 1991: A single-address CPU has 16-bit instructions; the low 8 bits are the operand-address field. Design a hardwired fetch cycle which also forms the effective address for an indexed instruction. The reproduction does not specify memory word size, address width, index-mode encoding, or a memory-ready protocol. Draw the controller logic and datapath.
Question 7(b), GATE 1991: A single-address CPU has 16-bit instructions; the low 8 bits are the operand-address field. Design a hardwired fetch cycle which also forms the effective address for an indexed instruction. The reproduction does not specify memory word size, address width, index-mode encoding, or a memory-ready protocol. Draw the controller logic and datapath.
Tap to enlarge
Answer & solution

Answer: A four-state hardwired sequencer drives PC/MAR/memory/MDR/IR and an indexed-address adder; READY holds the read state. (no official key was published)

Use a word-addressed memory returning one 16-bit instruction per access, an address-width w≥8, PC, MAR, MDR, IR, index register X and effective-address register EA. Let I be the decoded indexed-mode condition, and Z(IR[7:0]) the zero-extended address field. These are explicit implementation assumptions, not facts supplied by the question.

T0: MAR←PC.
T1: assert memory READ; wait until READY; MDR←M[MAR].
T2: IR←MDR; PC←PC+1.
T3: EA←Z(IR[7:0]) + (I ? X : 0), modulo 2w; finish fetch.

The operand field must come from the newly loaded IR, so effective-address formation follows T2. PC increment is independent of indexing: indexing modifies the operand address, not the address of the next instruction. The index flag is obtained from the instruction’s opcode/mode decoding; assigning it a particular bit without specification would be unjustified.

If memory is byte-addressed with an 8-bit data bus, use two reads, assemble the two bytes according to the selected endianness, and advance PC by two instead. If memory has a fixed guaranteed cycle, the READY self-loop can be replaced by the corresponding fixed number of timing states. These implementation variants do not change the essential separation of fetch, decode and address formation.

Datapath schematic

PC ─→ MAR ─address→ MEMORY ─data→ MDR ─→ IR
PC ─→ incrementer(+1) ─→ PC
IR[7:0] ─→ zero extend ─→ ADDER ─→ EA
X ─→ MUX(X or 0, select I) ─→ ADDER
IR[15:8] ─→ opcode/mode decoder ─→ I

Implement a one-hot sequencer S0,S1,S2,S3 with reset S0=1. Its next-state equations during fetch are S1_next=S0 OR (S1 AND NOT READY), S2_next=S1 AND READY, S3_next=S2; S0_next is asserted on the next fetch request rather than during instruction execution. The final S3 pulse transfers control to execution. Reset and start gating should prevent simultaneous states.

Control outputs: LD_MAR=S0; MEM_READ=S1; LD_MDR=S1 AND READY; LD_IR=S2; INC_PC=S2; LD_EA=S3; FETCH_DONE=S3. Each state’s loads occur at its ending clock edge. The adder’s second input selects X only when I=1. A two-bit state register plus a decoder is an equivalent SSI/MSI implementation. No control ROM is needed: Boolean gates decode state and instruction bits. The READY condition must obey the controller clock’s synchronization requirements.

Original paper, page 5