Combinational formulas
Combinational circuits: arithmetic circuits, multiplexers, decoders, code converters. 32 formulas for GATE EC, EE, IN Digital Electronics, each with when to use it. Each is explained in the topic notes.
IAE Academy: Combinational circuits: arithmetic circuits, multiplexers, decoders, code converters formulas (GATE EC, EE, IN)
All 32 Combinational formulas
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 .
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).
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.
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 .
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.
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.
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.
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.
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.
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.
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.
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.
ARRIVAL TIME AND CIRCUIT DELAY
Apply this gate by gate from the inputs to the outputs. T is the delay along the longest path.
Where this was asked: 2018 (1), 2020 (2), 2022 (2), 2023 (1), 2024 (3), 2025 (2), 2026 (1). See the 12 previous-year questions on Combinational. This shows what was asked, not what will be asked.