IAE Academy

GATE EC · EE · IN

Combinational circuits

Arithmetic circuits, multiplexers, decoders, code converters

A combinational circuit has no memory: its outputs depend only on the inputs present now. Adders, subtractors, comparators, multiplexers, decoders, encoders, code converters and ROM/PLA logic are all built this way. The procedures below cover the common tasks: naming the function a MUX or decoder network implements, building a given function from these blocks, counting blocks or ROM bits, and finding the worst-case delay of an adder or gate network.

12 previous-year questions · 12 solved · 5 practice questions

Conventions, half and full adders, subtractors

Conventions used in these notes. Positive logic (1 = HIGH). The complement of is written with an overline, . A multi-bit word is written MSB first, , where is the LSB. Signed numbers are in 2's complement unless stated otherwise. is XOR, is XNOR, is OR, and writing variables side by side means AND. Gate delays are propagation delays as defined in the last section.

A combinational circuit has no memory. Every output is a Boolean function of the present inputs only, so a truth table describes it completely. A sequential circuit is different: its outputs also depend on stored state. The basic arithmetic cells are the half adder, which adds two bits, and the full adder, which adds two bits and an incoming carry. The subtractor cells work the same way but produce a borrow instead of a carry.

HALF ADDER

Adds two 1-bit inputs and has no carry-in. A full adder with reduces to this.

FULL ADDER

is 1 when an odd number of the three inputs are 1. is the 3-input majority function. Use the second form of when the adder is built from two half adders.

HALF SUBTRACTOR (COMPUTES A − B)

A borrow occurs only when the minuend and the subtrahend .

FULL SUBTRACTOR (A MINUS B MINUS BORROW-IN)

Computes . The difference has the same expression as the full-adder sum. The borrow is the majority function of , and . The complement goes on the minuend .

Full adder from half adders. Two half adders and one OR gate make a full adder. The first half adder gives and . The second adds to and gives and . ORing the two carries gives .

Truth table: full adder (A plus B plus carry-in) and full subtractor (A minus B minus borrow-in)

A

B

or

S

D

0

0

0

0

0

0

0

0

0

1

1

0

1

1

0

1

0

1

0

1

1

0

1

1

0

1

0

1

1

0

0

1

0

1

0

1

0

1

0

1

0

0

1

1

0

0

1

0

0

1

1

1

1

1

1

1

EXAM TIP

With an odd number of inputs, an XNOR chain equals the XOR of the same inputs, so and the full-adder sum can be written either way. With an even number of inputs the two differ by a complement. Minimum counts of 2-input NAND gates: 5 for a half adder, 9 for a full adder. The same counts hold for 2-input NOR gates.

EXAM TIP

Do not copy the carry expression into the borrow. The half-subtractor borrow is , not . The complement sits on the minuend, the number being subtracted from.

Multi-bit adders: ripple carry, carry look-ahead, add/subtract

An n-bit ripple-carry adder (RCA) is a chain of n full adders. The carry out of stage is the carry-in of stage , and is the external carry-in. If there is no external carry-in, stage 0 can be a half adder. The circuit is small but slow. In the worst case a carry generated in stage 0 has to ripple through every later stage, as in with .

RIPPLE-CARRY ADDER DELAY

is a stage's delay from to , and is its delay from to . settles at and at . The formula assumes all , and are applied at and each stage's is ready before its carry arrives. If stage 0 is slower from than from , which is the case in a gate-level full adder, compute arrival times directly (see the worked example).

A carry look-ahead adder (CLA) removes the ripple. Stage generates a carry when , whatever is. It propagates an incoming carry when exactly one of is 1. Expanding recursively gives every carry directly in terms of the s, the s and , so once the s and s are ready, all carries settle after the same two gate levels.

GENERATE, PROPAGATE, CARRY AND SUM

Defining gives the same carries, but then whenever . The XOR definition lets the sum reuse .

LOOK-AHEAD CARRIES (4-BIT)

Each carry is a two-level SOP of , and . has product terms, and the largest has literals.

CLA DELAY

Measured from the operand inputs: 1 level for , 2 levels (AND then OR) for every carry, and 1 XOR for every sum. This assumes every gate, XOR included, has unit delay and unlimited fan-in. The depth does not grow with , but needs -input gates, so wide adders are built from 4-bit CLA blocks.

GROUP GENERATE AND PROPAGATE (4-BIT BLOCK)

when the block produces a carry by itself, and when it passes its carry-in straight through. A second-level look-ahead unit combines the group and of four blocks with the same equations as the first level, giving , , and without ripple.

CLA CARRY-LOGIC GATE COUNT (N BITS)

Counts the gates that form from , and . needs AND gates, because its term needs none, plus one -input OR gate. The count leaves out the n AND gates for and the n XOR gates for . For : 10 AND and 4 OR.

Adder–subtractor. In 2's complement, (modulo ). One n-bit adder and n XOR gates can do both operations. A mode line is XORed with every , which passes unchanged when and inverts it when . also drives , which supplies the . Below, is the operand bit that actually enters the adder.

ADDER–SUBTRACTOR

Signed or unsigned operands use the same hardware. Only the reading of the flags differs.

SIGNED OVERFLOW (2'S COMPLEMENT)

is the operand actually entering the adder, not itself. Overflow is possible only when both addends have the same sign, and it occurs when the sign of the sum differs from theirs.

NUMBER RANGES (N BITS)

The sum of two n-bit unsigned numbers can need bits, because it can reach .

UNSIGNED SUBTRACTION FLAG

Applies when is computed as on unsigned operands. means a borrow, and the n-bit result is then the 2's complement of .

BCD ADDER CORRECTION

and come from a 4-bit binary adder adding two BCD digits and a carry-in. detects binary sums of 10 to 19. The maximum sum is . A second 4-bit adder adds to ; its own carry-out is ignored, and the decimal carry is .

ARRAY MULTIPLIER (UNSIGNED N-BIT × M-BIT)

The AND gates form the partial products , and the adders sum the shifted partial-product rows. A 2-bit × 2-bit multiplier needs 4 AND gates and one 2-bit adder, which reduces to 2 half adders because nothing enters its carry-in.

WORKED EXAMPLE · RIPPLE CARRY VS CARRY LOOK-AHEAD DELAY

A 4-bit adder is built from XOR gates (4 ns), AND gates (3 ns) and OR gates (3 ns). The AND and OR delays are the same at any fan-in. Every stage forms and , and . All operand bits and arrive at . Find the worst-case delay of (a) a ripple-carry adder with , and (b) a carry look-ahead adder that forms every carry as a two-level SOP of , and .

Solution
  1. In every stage is ready at 3 ns and at 4 ns.

  2. (a) Stage 0: is ready at ns, so is ready at ns.

  3. (a) In stage , and are already stable when arrives, so each carry adds one AND and one OR: ns. That gives , , ns.

  4. (a) Sums: at 8 ns, at 14, at 20, at ns. Worst case ns, set by .

  5. (b) Every AND term in the look-ahead expressions contains at least one , so the AND outputs settle at ns and the ORs at 10 ns. All of to are ready at 10 ns.

  6. (b) Each sum is ready at ns, and so is the whole adder.

  7. For comparison, a 16-bit ripple adder with these gates settles at ns. A single-level 16-bit CLA would still take 14 ns but needs 17-input gates.

Answer: (a) Ripple carry: 28 ns, set by ( is ready at 26 ns). (b) Carry look-ahead: 14 ns, set by the sums (the carries are ready at 10 ns).

EXAM TIP

Overflow and carry mean different things. For unsigned addition the carry-out is the overflow. For signed 2's-complement addition, use and ignore . Adding two numbers of opposite sign can never overflow.

EXAM TIP

When a question gives gate delays, draw each stage and write an arrival time at every node. Stage 0 often has a different delay from the others, because its carry path starts at through an XOR. The later stages all add the same delay.

Comparators, parity generators and code converters

A magnitude comparator decides whether , or for unsigned words. It scans from the MSB down: the most significant bit position in which the two words differ decides the result.

1-BIT COMPARATOR

Exactly one of the three outputs is 1 for any input.

4-BIT MAGNITUDE COMPARATOR

Unsigned operands, with and as the MSBs. when bit of the two words is equal.

A parity generator appends one bit so that the transmitted word has an even number of 1s (even parity) or an odd number (odd parity). The checker at the receiver XORs all the received bits, parity bit included.

PARITY GENERATOR

makes the total count of 1s in data plus parity even. makes it odd.

PARITY CHECKER

In an even-parity system, flags an error. In an odd-parity system, flags one. The check detects any odd number of bit errors, misses any even number, and cannot locate the bit in error.

A code converter is a multi-output combinational circuit. Write the truth table from input code to output code, mark unused input combinations as don't-cares, and minimise each output bit. Binary↔Gray conversion needs only XOR gates. A BCD-to-7-segment decoder has 4 inputs, 7 outputs (segments a to g) and 6 don't-care inputs (1010 to 1111). On a common-cathode display a segment lights when driven with 1, so the outputs are active-high. On a common-anode display it lights when driven with 0, so every output is complemented.

BINARY TO GRAY

This is the same as XORing the binary word with a copy of itself shifted right by one place. Needs n − 1 XOR gates, all working in parallel.

GRAY TO BINARY

Each binary bit is the running XOR of the Gray bits from the MSB down. Built as a chain, the delay is up to n − 1 XOR delays.

BCD TO EXCESS-3

Applied to each BCD digit, valid for digits 0 to 9. Excess-3 is self-complementing: complementing every bit of a digit's Excess-3 code gives the Excess-3 code of its 9's complement.

BCD TO 7-SEGMENT, SEGMENT A

Input is 8421 BCD with the MSB. Segments are active-high and 1010 to 1111 are don't-cares. Segment a is off only for digits 1 and 4. This assumes 6 is drawn with segment a.

Codes for the decimal digits. Segments: a top, b upper right, c lower right, d bottom, e lower left, f upper left, g middle. 6 is drawn with a, 9 with d, and 7 without f.

Decimal

8421 BCD

Excess-3

Gray (4-bit)

Segments on

0

0000

0011

0000

a b c d e f

1

0001

0100

0001

b c

2

0010

0101

0011

a b d e g

3

0011

0110

0010

a b c d g

4

0100

0111

0110

b c f g

5

0101

1000

0111

a c d f g

6

0110

1001

0101

a c d e f g

7

0111

1010

0100

a b c

8

1000

1011

1100

a b c d e f g

9

1001

1100

1101

a b c d f g

EXAM TIP

The two Gray conversions run in opposite directions. Binary to Gray XORs neighbouring binary bits. Gray to binary XORs each Gray bit with the binary bit just found above it, not with the next Gray bit. In the full n-bit reflected Gray code, consecutive codes differ in exactly one bit, and so do the last and first of all codes. A shortened list is not cyclic: in the table above, 9 (1101) and 0 (0000) differ in three bits.

Multiplexers and demultiplexers

A multiplexer (data selector) has data inputs , select lines and one output. is the MSB of the select code, and reaches the output when the select code equals . In AND–OR form it uses AND gates with inputs each, one OR gate with inputs, and inverters for the complemented select lines. A demultiplexer works the other way: it routes one data input to one of outputs.

2:1 AND 4:1 MUX

is the MSB of the select code.

GENERAL MUX WITH N SELECT LINES

is the k-th minterm of the select variables and means OR. An enable input E, where present, multiplies the whole expression.

DEMUX WITH N SELECT LINES

is the k-th minterm of the select lines. A 1: DEMUX is the same circuit as an n-to- decoder whose enable input carries the data.

MUX TREE

N and k are powers of 2. Each k:1 MUX cuts the number of candidate signals by at most k − 1. When N is a power of k the division is exact and the MUXes form a full tree: 16:1 from 4:1 needs 4 + 1 = 5, 8:1 from 2:1 needs 7, 64:1 from 4:1 needs 21. Otherwise the last MUX has unused inputs: 32:1 from 4:1 needs 8 + 2 + 1 = 11. The same count holds for a 1:N DEMUX built from 1:k DEMUXes.

Because the output is , a MUX with only 0 and 1 on its data inputs implements any function of its select variables: the data inputs are simply the truth-table column. If the data inputs can also take one more variable or its complement, the MUX implements any function of variables. So an n-variable function needs only a MUX.

Implementing an n-variable function on a MUX with n − 1 select lines

  1. Put of the variables on the select lines, keeping their order: the most significant of them goes on the highest select line. Call the remaining variable .

  2. For each select code , find the two minterms of that share it. They differ only in . If is the LSB they are () and (). If is the MSB they are () and ().

  3. Set if neither minterm is in , if both are, if only the one with is, and if only the one with is.

  4. For any other choice of , or as a check, use an implementation table: two rows ( and ), one column per data input, and every minterm written in the cell for its own value and select code. Mark the minterms of and read each column by the rule above.

  5. Set don't-care minterms to 0 or 1, whichever makes a data input a constant.

WORKED EXAMPLE · A 4-VARIABLE FUNCTION ON AN 8:1 MUX

Implement with an 8:1 MUX. Use ( is the MSB) and put , , 0 or 1 on the data inputs.

Solution
  1. With , input is selected when . The two minterms sharing that code are () and ().

  2. : , , so . : , , so .

  3. : , , so . : , so .

  4. : , so . : , , so .

  5. : , so . : , so .

  6. Spot check: () selects , which is correct. () gives , also correct.

Answer: . One inverter supplies .

EXAM TIP

A 2:1 MUX is functionally complete when the constants 0 and 1 are available. NOT: , , gives . AND: , , gives . OR: , , gives . XOR needs a complemented input: , , .

EXAM TIP

Check which variable drives which select line before you read off minterms. If the circuit puts the first-listed variable on instead of the highest select line, the index changes and the minterm list comes out wrong. For cascaded MUXes, write each MUX's output as an expression, then substitute it into the next.

Decoders and encoders

An n-to- decoder activates exactly one of its outputs: output is active when the input code equals . With active-high outputs, each output is a minterm of the inputs. A decoder plus OR gates therefore implements any set of functions of its inputs in sum-of-minterms form, with one decoder shared by all of them. An enable input gates every output. A decoder with an enable is the same circuit as a 1: demultiplexer, with as the data input and the code inputs as the select lines. Internally it uses AND gates with n inputs each ( with an enable), plus n inverters.

DECODER OUTPUTS

is the k-th minterm of the inputs. With , an active-low output is the maxterm .

FUNCTION FROM A DECODER

The decoder must be enabled. means OR, means AND, and is the active-low output line. A NOR gate on the active-high outputs of the 0-minterms also gives . Use the 0-minterm form when has more 1s than 0s, because the gate then needs fewer inputs.

DECODER TREE

Valid when N is a power of k and each decoder has an enable input. Example: a 4:16 decoder from 2:4 decoders needs 4 + 1 = 5, with the first-level decoder driving the enables. A 3:8 decoder needs only two 2:4 decoders: the MSB drives one enable directly and the other through an inverter.

An encoder does the reverse job: it has inputs and outputs that give the index of the active input. A plain encoder assumes exactly one input is active. A priority encoder outputs the index of the highest-priority active input. It also has a valid output , because otherwise 'input 0 active' and 'no input active' both give code 0.

8:3 ENCODER (OCTAL TO BINARY)

Valid only when exactly one input is 1. does not appear, so ' active' and 'no input active' both give 000.

4:2 PRIORITY ENCODER (D3 HIGHEST PRIORITY)

Active-high inputs and outputs. means no input is active, and should then be ignored.

EXAM TIP

A plain encoder with two active inputs outputs the bitwise OR of their codes. For example, and together give , which looks the same as alone. A priority encoder avoids this.

EXAM TIP

Before choosing the output gate, check whether the decoder outputs are active-low. Active-low outputs are maxterms, so ORing them does not give . A NAND of the 1-minterm lines does, and so does an AND of the 0-minterm lines.

ROM, PLA, PAL and the critical path

A ROM with address lines and data outputs is a combinational circuit. It is a fixed n-to- decoder (the AND array, which produces every minterm) followed by a programmable OR array. The ROM stores the truth table directly, so no minimisation is needed and it can hold any functions of variables.

ROM SIZE

n is the number of input variables (address lines) and m the number of output functions (word length). All words count, even if some input combinations never occur.

A PLA has a programmable AND array, which forms k product terms from any inputs or their complements, and a programmable OR array, in which each output ORs any of the k terms. Outputs can share product terms, so minimise the outputs together to reduce the number of distinct terms. A PAL has a programmable AND array but a fixed OR array. Each output owns a fixed number of product terms and cannot share them.

PLA PROGRAMMABLE CONNECTIONS

For n inputs, k product terms and m outputs. The AND array connects each term to any of the 2n true and complemented literals; the OR array connects each output to any term. Add m if each output has a programmable inverter.

ROM vs PLA vs PAL

Device

AND array

OR array

Product terms

Best when

ROM

Fixed (full decoder)

Programmable

All minterms, no minimisation

Dense truth tables, look-up tables, code converters

PLA

Programmable

Programmable

k chosen terms, shared among outputs

Many outputs that share product terms

PAL

Programmable

Fixed

Fixed number per output, not shared

Each output needs only a few terms

Propagation delay of a gate is taken here as the worst-case time from an input change until the output settles, the larger of and . Some data sheets quote the average of the two, so use whichever definition the question gives. The critical path is the input-to-output path with the largest total delay. The circuit's outputs are valid only that long after the last input change.

ARRIVAL TIME AND CIRCUIT DELAY

Apply this gate by gate from the inputs to the outputs. T is the delay along the longest path.

Finding the critical path

  1. Give each primary input its arrival time: 0 unless stated. If complements are not available, add an inverter delay to each complemented input.

  2. Work from the inputs towards the outputs. Each gate's output time is the latest of its input times plus that gate's .

  3. The largest time at any primary output is the circuit delay.

  4. To find the critical path, trace back from that output, at each gate following the input that set the maximum.

Static hazards. Because paths have unequal delays, an output can glitch during an input change even when its final value equals its starting value. In a two-level AND–OR (SOP) circuit a static-1 hazard can occur when a single input change moves between two 1-cells of the K-map that no single product term covers. Adding the redundant consensus term that covers both cells removes it. Example: can dip to 0 when changes while ; adding holds at 1 throughout.

EXAM TIP

ROM size counts every address, don't-cares included. A BCD-to-7-segment converter stored in ROM needs bits, even though only 10 addresses are used. In a PLA, a product term shared by two outputs counts only once.

EXAM TIP

Two-level AND–OR logic has a delay of 2 gate levels when complemented inputs are available, and 3 when inverters must be added. A NAND–NAND realisation has the same structure and depth as AND–OR.

PREVIOUS-YEAR QUESTIONS

12 questions from the EC, EE and IN papers

Try each question first, then open the answer. We placed each question under a topic ourselves; the exam paper does not label topics.

See these papers in full: GATE ECE 2026 · GATE ECE 2025 · GATE ECE 2024 · GATE ECE 2023 · GATE ECE 2022 · GATE ECE 2020 · GATE ECE 2018 · GATE EE 2024 · GATE IN 2025 · GATE IN 2022 · GATE IN 2020

GATE 2026 EC Q.48

GATE 2026 · ECQ.48 · 2 marks · MCQ

A Boolean function, with as MSB and as LSB is realized by 4:1 multiplexer (MUX) with select lines, and ( is MSB, is LSB) and inputs, as shown in the Figure.

Which of the following options is the correct expression of ?

GATE 2026 EC question 48: A 4:1 MUX block labelled '4:1 MUX' with data inputs I0, I1, I2, I3 on the left, select lines S1 and S0 at the bottom, and…Tap to open full size
Figure from the GATE 2026 EC paper. It is part of the question.
Figure description

A 4:1 MUX block labelled '4:1 MUX' with data inputs I0, I1, I2, I3 on the left, select lines S1 and S0 at the bottom, and output f(x,y,z) on the right, ending in a terminal dot. Constant 1 (terminal dot) is wired to I0. A vertical wire leaves the 1 line at a plain T-junction (no junction dot is drawn; a T-junction is a connection), runs down, and turns right into I2, so I2 = 1. Constant 0 (terminal dot) is wired to I1. Where the 0 line crosses the vertical wire it has a hop (a small arc), so those two wires are NOT connected. Input y is wired to I3. Input x drives S1 and input z drives S0. Summary: I0 = 1, I1 = 0, I2 = 1, I3 = y, S1 = x, S0 = z.

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
GATE 2026 EC Q.48: answer and solution

GATE 2025 EC Q.24

GATE 2025 · ECQ.24 · 1 mark · MCQ

A full adder and an XOR gate are used to design a digital circuit with inputs , , and , and output , as shown below. The input is connected to the carry-in input of the full adder.

If the input is set to logic '1', then the circuit functions as ________ with and as inputs.

GATE 2025 EC question 24: Three inputs X, Y, Z enter from the top.Tap to open full size
Figure from the GATE 2025 EC paper. It is part of the question.
Figure description

Three inputs X, Y, Z enter from the top. X goes straight down into the left operand input of a block labelled "full adder" (drawn as a trapezoid, wide edge on top). Y and Z are the two inputs of a 2-input XOR gate; the XOR output goes into the right operand input of the full adder. Z also branches off at a junction dot above the XOR gate and runs round the right side into the full adder's side input, which is its carry-in. The full adder's output is a 2-bit bus (a slash marked 2), labelled F, which carries the sum and the carry-out.

  1. (A)

    an adder

  2. (B)

    a subtractor

  3. (C)

    a multiplier

  4. (D)

    a binary to Gray code converter

Answer and solution
GATE 2025 EC Q.24: answer and solution

GATE 2025 IN Q.17

GATE 2025 · INQ.17 · 1 mark · MCQ

The minimized expression of the Boolean function Y(P, Q, R) implemented by the multiplexer (MUX) circuit shown in the figure is

GATE 2025 IN question 17: Two multiplexers in cascade.Tap to open full size
Figure from the GATE 2025 IN paper. It is part of the question.
Figure description

Two multiplexers in cascade. First MUX (4:1): select lines labelled S_0 (driven by P) and S_1 (driven by Q), with the select bits read as S_0S_1. Data inputs: input 00 = 0, input 01 = 1, input 10 = 1, input 11 = 0. Its output goes to data input 0 of a second MUX (2:1). Second MUX: select line S driven by R; data input 0 = output of the first MUX, data input 1 = constant 1. The output of the second MUX is Y.

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
GATE 2025 IN Q.17: answer and solution

GATE 2024 EC Q.40

GATE 2024 · ECQ.40 · 2 marks · MCQ

A 4-bit priority encoder has inputs and in descending order of priority. The two-bit output is generated as 00, 01, 10, and 11 corresponding to inputs and , respectively. The Boolean expression of the output bit is ______.

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
See the question in the paper
GATE 2024 EC Q.40: answer and solution

GATE 2024 EC Q.41

GATE 2024 · ECQ.41 · 2 marks · MCQ

The propagation delay of the MUX shown in the circuit is . Consider the propagation delay of the inverter as .

[Figure]

If S is set to 1 then the output Y is ________.

GATE 2024 EC question 41: A 2 X 1 MUX block with data inputs labelled 0 (upper) and 1 (lower), select input S at the bottom, and output Y on the…Tap to open full size
Figure from the GATE 2024 EC paper. It is part of the question.
Figure description

A 2 X 1 MUX block with data inputs labelled 0 (upper) and 1 (lower), select input S at the bottom, and output Y on the right. From the output Y a junction dot leads a wire up above the MUX, left across the top and down to a junction dot on the line entering input 0, so input 0 is wired directly to Y. From that same junction dot an inverter (triangle pointing downwards with the bubble at its lower end) runs down, and its output goes right into input 1. So I0 = Y and I1 = Y' (complement of Y). Propagation delay: MUX 10 ns, inverter 0 ns.

  1. (A)

    a square wave of frequency 100 MHz

  2. (B)

    a square wave of frequency 50 MHz

  3. (C)

    constant at 0

  4. (D)

    constant at 1

Answer and solution
GATE 2024 EC Q.41: answer and solution

GATE 2024 EE Q.26

GATE 2024 · EEQ.26 · 1 mark · MCQ

To obtain the Boolean function , the inputs in the figure should be

GATE 2024 EE question 26: A 4:1 multiplexer drawn as a box labelled '4:1 Multiplexer'.Tap to open full size
Figure from the GATE 2024 EE paper. It is part of the question.
Figure description

A 4:1 multiplexer drawn as a box labelled '4:1 Multiplexer'. Data inputs on the left: P to input 0, Q to input 1, R to input 2, S to input 3. Output on the right labelled F(X,Y). Two select lines at the bottom: S_1 (marked MSB) driven by X, and S_0 (marked LSB) driven by Y. A note reads: 'S_1 and S_0 are the select lines.'

  1. (A)

    1010

  2. (B)

    1110

  3. (C)

    0110

  4. (D)

    0001

Answer and solution
GATE 2024 EE Q.26: answer and solution

GATE 2023 EC Q.23

GATE 2023 · ECQ.23 · 1 mark · MCQ

In the circuit shown below, P and Q are the inputs. The logical function realized by the circuit shown below is

GATE 2023 EC question 23: A single 2 × 1 MUX block with output Y on the right.Tap to open full size
Figure from the GATE 2023 EC paper. It is part of the question.
Figure description

A single 2 × 1 MUX block with output Y on the right. Data input I_0 is tied to ground (logic 0). Data input I_1 is driven by input P. The select line (Sel), entering from the bottom of the block, is driven by input Q. There are no other gates.

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
GATE 2023 EC Q.23: answer and solution

GATE 2022 EC Q.19

GATE 2022 · ECQ.19 · 1 mark · MCQ

Consider the 2-bit multiplexer (MUX) shown in the figure. For OUTPUT to be the XOR of C and D, the values for , , , and are ________.

GATE 2022 EC question 19: A 4-to-1 multiplexer drawn as a box labelled with data inputs 0, 1, 2, 3 on its left side.Tap to open full size
Figure from the GATE 2022 EC paper. It is part of the question.
Figure description

A 4-to-1 multiplexer drawn as a box labelled with data inputs 0, 1, 2, 3 on its left side. Inputs grouped under the vertical label INPUT: A_0 goes to input 0, A_1 to input 1, A_2 to input 2, A_3 to input 3. The select lines are labelled SELECT with S_1 and S_0 at the bottom of the box; C drives S_1 and D drives S_0 (arrows coming up from below). A single arrow on the right side of the box is labelled OUTPUT.

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
GATE 2022 EC Q.19: answer and solution

GATE 2022 IN Q.23

GATE 2022 · INQ.23 · 1 mark · MSQ

The output F of the digital circuit shown can be written in the form(s) ________

GATE 2022 IN question 23: Two 2×1 multiplexers connected in cascade.Tap to open full size
Figure from the GATE 2022 IN paper. It is part of the question.
Figure description

Two 2×1 multiplexers connected in cascade. First (left) MUX: input I_0 = 1, input I_1 = 0, select line S_0 = B; its output Y goes to the I_1 input of the second MUX. Second (right) MUX: input I_0 = 1, input I_1 = output Y of the first MUX, select line S_0 = A; its output Y is F.

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
GATE 2022 IN Q.23: answer and solution

GATE 2020 EC Q.10

GATE 2020 · ECQ.10 · 1 mark · MCQ

The figure below shows a multiplexer where and are the select lines, to are the input data lines, EN is the enable line, and is the output. is

GATE 2020 EC question 10: A 4-to-1 MUX block.Tap to open full size
Figure from the GATE 2020 EC paper. It is part of the question.
Figure description

A 4-to-1 MUX block. Enable input EN has an inversion bubble (active-low) and is tied to logic 0. Data inputs: I_0 = R, I_1 = 0, I_2 = R, I_3 = 1. Select lines on the bottom: S_1 = P, S_0 = Q. Single output F on the right.

  1. (A)

    .

  2. (B)

    .

  3. (C)

    .

  4. (D)

    .

Answer and solution
GATE 2020 EC Q.10: answer and solution

GATE 2020 IN Q.12

GATE 2020 · INQ.12 · 1 mark · MCQ

The Boolean operation performed by the following circuit at the output O is ____

GATE 2020 IN question 12: A 4:1 multiplexer ('4:1 Mux') with data inputs I_0, I_1, I_2, I_3 from top to bottom, output O on the right, and select…Tap to open full size
Figure from the GATE 2020 IN paper. It is part of the question.
Figure description

A 4:1 multiplexer ('4:1 Mux') with data inputs I_0, I_1, I_2, I_3 from top to bottom, output O on the right, and select lines S_1 (labelled MSB) and S_0 (labelled LSB) at the bottom. On the left, a ground symbol (logic 0) has a vertical wire rising to a top horizontal wire. That top wire passes through two NOT gates in series and then goes into I_0. Between the ground riser and the first NOT gate, a branch drops from the top wire and runs right into I_3. The node between the first and second NOT gates (the output of the first inverter) has a branch dropping down that connects to both I_1 and I_2. So I_0 = 0, I_1 = I_2 = 0, and I_3 = 0.

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
GATE 2020 IN Q.12: answer and solution

GATE 2018 EC Q.31

GATE 2018 · ECQ.31 · 2 marks · MCQ

A four-variable Boolean function is realized using multiplexers as shown in the figure.

The minimized expression for is

GATE 2018 EC question 31: Two 4x1 MUXes in cascade.Tap to open full size
Figure from the GATE 2018 EC paper. It is part of the question.
Figure description

Two 4x1 MUXes in cascade. First (left) 4x1 MUX: data input I0 is connected to ground (logic 0); I1 and I2 are both tied to V_CC (logic 1); I3 is connected to ground (logic 0), sharing the same ground line as I0. Its select lines are S1 = U and S0 = V. The output of the first MUX feeds both I0 and I1 of the second (right) 4x1 MUX. The second MUX's I2 and I3 are both connected to ground (logic 0). Its select lines are S1 = W and S0 = X. The output of the second MUX is F(U,V,W,X).

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution
GATE 2018 EC Q.31: answer and solution

PRACTICE

5 questions to test yourself

PRACTICE 11 mark · NAT

A ROM implements a combinational circuit that multiplies two 4-bit unsigned binary numbers and outputs the full product. The minimum ROM size, in bits, is ______.

Answer and solution

Answer:

  1. The circuit has input bits, so the ROM needs 8 address lines and words.

  2. The largest product is . Since , the product needs exactly 8 output bits.

  3. ROM size bits.

PRACTICE 21 mark · MCQ

A 3-to-8 decoder has inputs ( is the MSB), is permanently enabled, and has active-low outputs . The outputs , , and drive a 4-input NAND gate. The NAND output is

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution

Answer: (A)

  1. Each active-low output is .

  2. By De Morgan, .

  3. Minterms 001, 010, 100 and 111 are exactly the inputs with an odd number of 1s, so .

PRACTICE 32 marks · NAT

An 8-bit ripple-carry adder is built from full adders, each made of 2-input gates as and . Each stage computes once and uses it for both outputs. Gate delays are XOR 3 ns, AND 2 ns, OR 2 ns. All operand bits and are applied at . The minimum time, in ns, after which all eight sum bits and the final carry are guaranteed stable is ______.

Answer and solution

Answer:

  1. In every stage, is ready at 3 ns and at 2 ns.

  2. Stage 0: is ready at ns, so is ready at ns.

  3. In stage , is already stable when arrives, so . That gives ns: ns and ns.

  4. The last sum, , is ready at ns.

  5. Worst case ns.

PRACTICE 42 marks · MSQ

A 4-bit adder–subtractor feeds to a 4-bit ripple-carry adder and sets . is the carry out of the MSB stage and is the carry into it. With , and , which of the following statements are correct?

  1. (A)

    The 4-bit output is .

  2. (B)

    The signed-overflow flag is 1.

  3. (C)

    The carry out is 1.

  4. (D)

    Reading and as unsigned numbers (6 and 11), correctly signals that .

Answer and solution

Answer: (A), (B), (D)

  1. With the adder receives , and .

  2. Bit 0: , carry 0. Bit 1: , carry 0. Bit 2: , carry . Bit 3: , carry .

  3. The output is , and , so there is signed overflow. This is expected, because exceeds the 4-bit signed maximum of 7.

  4. Unsigned: means a borrow, i.e. , and indeed . So (A), (B) and (D) are correct, and (C) is false.

PRACTICE 52 marks · MCQ

A 4:1 multiplexer has select lines and ( is the MSB of the select code) and data inputs , , , . With as the MSB of the minterm index, the output is

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Answer and solution

Answer: (A)

  1. .

  2. , , and .

  3. So . Option (D) is what you get with the select lines swapped, (B) comes from taking , and (C) from taking .

OFFICIAL GATE 2027 SYLLABUS WORDING

Copied from the GATE 2027 syllabus; see all 2027 syllabi.

GATE EC

arithmetic circuits, code converters, multiplexers, decoders

GATE EE

combinatorial … logic circuits, multiplexers, demultiplexers

GATE IN

Combinational logic circuits, multiplexer and demultiplexer … arithmetic circuits

Preparing in Kolkata? IAE Academy's course for GATE ECE, GATE EE or GATE IN.