Combinational circuit design
A combinational output depends only on present inputs. Translate the specification into a truth table, minimise each output, and then implement it with the allowed gates or functional blocks. Verify the final circuit on every specified row.
4.1 Design from a specification
Past papers · EE 2020–2026 (7 papers): 1 question, 2 marks
Choose input and output codes, list legal and illegal inputs, and state active-high or active-low conventions. Treat an input as don't-care only when it is guaranteed not to occur or when its output is genuinely unspecified. Minimise outputs independently first, then look for shared terms. Verify each output's polarity and any enable signal.
A three-input majority function is the carry of a full adder. To design “exactly two inputs high”, remove the all-ones row from the majority on-set. Symmetric functions depend only on the number of input ones; parity and threshold functions are useful starting points.
4.2 Adders, subtractors and decimal correction
Past papers · EC 2020–2026 (7 papers): 1 question, 1 mark · EE 2020–2026 (7 papers): 1 question, 2 marks
An -bit adder-subtractor uses at each second operand input and : mode adds and forms . Ripple full adders join each carry output to the next carry input. An unsigned -by- bit product fits in bits; partial products are AND gates shifted by their bit positions.
4.3 Carry lookahead
Past papers · CS 2014–2026 (23 papers): 1 question, 2 marks
Some carry formulas use instead. That convention still permits , but the sum remains . Unlimited-fan-in two-level carry equations do not imply constant delay for bounded-fan-in gates.
4.4 Magnitude comparators
Compare the highest-order unequal bits first. Equality requires equality at every bit position.
4.5 Multiplexers and Shannon expansion
Past papers · CS 2014–2026 (23 papers): 6 questions, 11 marks · EC 2020–2026 (7 papers): 3 questions, 4 marks · EE 2020–2026 (7 papers): 1 question, 1 mark
A multiplexer selects a data input; select inputs are an address, not data that are ORed into the output. Always determine which select bit is MSB and whether enable or output is inverted.
To realise an -variable function, use all variables as selects and wire data pins to truth-table constants. With selects, each data pin becomes 0, 1, the remaining variable or its complement. For cascaded MUXes, substitute stage outputs without changing select order. A disabled output is determined by the device specification; it need not be 0.
4.6 Decoders and demultiplexers
Past papers · CS 2014–2026 (23 papers): 2 questions, 3 marks · EC 2020–2026 (7 papers): 1 question, 1 mark
OR the required active-high decoder outputs to realise a sum of minterms. With active-low decoder outputs, NAND the selected lines instead. A decoder built from one full-width AND per minterm needs such AND gates, plus shared input inversions; this is not the count for a restricted two-input-gate implementation. Cascade decoders through their enables while retaining their active levels.
ROM, SRAM, DRAM, address mapping, machine instructions, ALU, datapath, control and instruction pipelining: see the Computer Organization and Architecture handbook (GATE EC §5).
4.7 Encoders and priority
Past papers · EC 2020–2026 (7 papers): 1 question, 2 marks
An ordinary encoder assumes exactly one active input. A priority encoder resolves simultaneous active inputs, but its output labels need not be the ordinary binary indices. Start with the priority order and the specified encoding.
If a question assigns code 00 to the highest-priority input, this table cannot be used unchanged. Derive the output bits from the specified code labels, including the no-active-input case.
4.8 Code converters
8421 BCD represents each decimal digit separately. Excess-3 adds 3 to each decimal digit before forming its four-bit code. Gray code is non-weighted: adjacent codewords differ in one bit, reducing ambiguity during adjacent-position transitions. A weighted code assigns a fixed weight to each position and represents a digit by the sum of weights at its 1 bits. Aiken 2421 uses the conventional assignments below; the weights alone do not uniquely choose a codeword.
| Decimal digit | 8421 BCD | Excess-3 | Aiken 2421 | Reflected Gray of the integer |
|---|---|---|---|---|
| 0 | 0000 | 0011 | 0000 | 0000 |
| 1 | 0001 | 0100 | 0001 | 0001 |
| 2 | 0010 | 0101 | 0010 | 0011 |
| 3 | 0011 | 0110 | 0011 | 0010 |
| 4 | 0100 | 0111 | 0100 | 0110 |
| 5 | 0101 | 1000 | 1011 | 0111 |
| 6 | 0110 | 1001 | 1100 | 0101 |
| 7 | 0111 | 1010 | 1101 | 0100 |
| 8 | 1000 | 1011 | 1110 | 1100 |
| 9 | 1001 | 1100 | 1111 | 1101 |
Excess-3 and the listed Aiken 2421 code are self-complementing: complementing the code gives the code of the 9's-complement decimal digit. For a weighted decimal code, weights summing to 9 make bitwise complementation produce numerical value for digit , provided the chosen code set includes those complementary words. For any converter, tabulate valid input/output pairs, mark truly unused input codes as don't-cares, and minimise each output bit. Seven-segment decoder design follows this same process after defining segment labels and active levels.
Last-minute recall
- Define illegal inputs before assigning don't-cares.
- A full-adder carry is a majority function.
- BCD correction adds 6 when the raw digit exceeds 9 or carries.
- Carry-lookahead depth depends on allowed fan-in.
- A MUX data input can itself be a function.
- Decoder output polarity controls the combining gate.
- A priority encoder needs the specified code assignment.
- Gray conversion runs across adjacent binary bits.