Related Concepts: 02 Code Converters & Data Routing Implementations | 03 Tree Networks (Cascading MUX, Decoders & DeMUX) | 04 Programmable Logic Devices (ROM & PLA)
5.01 Arithmetic Circuits, Multipliers & Comparators
Combinational Arithmetic Building Blocks
Combinational Arithmetic Circuits form the core of a CPU’s Arithmetic Logic Unit (ALU). Because combinational circuits have no memory elements, their outputs are functions solely of their present inputs.
graph TD subgraph 3 Half-Adder Functional Generator InA[Inputs A, B] --> HA1[Half-Adder 1: S1 = A ⊕ B, C1 = AB] HA1 & InC[Input C] --> HA2[Half-Adder 2: S2 = A ⊕ B ⊕ C = D, C2 = S1 • C = E] HA1 & InC --> HA3[Half-Adder 3: S3 = C1 ⊕ C = F, C3 = C1 • C = G] end
1. The 4-Function Half-Adder Cascading Puzzle
Major Exam Problem: Implement 4 Functions using 3 Half-Adders (2015, 2018, 2019 - 12 Marks)
Question: Implement the following four Boolean functions using exactly three Half-Adder circuits:
Solution Step-by-Step:
-
Half-Adder 1 (HA1): Inputs and .
- Sum Output:
- Carry Output:
-
Half-Adder 2 (HA2): Inputs and .
- Sum Output:
- Carry Output:
-
Half-Adder 3 (HA3): Inputs and .
- Sum Output:
- Carry Output:
2. Full-Adder to Full-Subtractor Conversion
The Single Inverter Trick (2020 - 10 Marks)
Question: Show that a Full-Adder can be converted to a Full-Subtractor with the addition of one inverter gate.
- Standard Full-Adder (FA): ,
- Standard Full-Subtractor (FS): ,
Solution:
Connect an inverter to the Minuend input () before it enters the Full-Adder.
- Input to FA becomes .
- Carry Out becomes: (matches Full-Subtractor Borrow Out).
- Note: The Sum output becomes (complement of Difference).
3. Carry Look-Ahead Mathematical Proof
Major Exam Proof: (2018 - 10 Marks)
Question: Show that the output carry in a full-adder circuit can be expressed as .
Proof Steps:
- Standard Full-Adder Carry Out:
- Define Carry Generate ():
- Define Carry Propagate ():
- Substituting and yields:
4. 2-Bit Binary Multiplier Circuit Design
Major PYQ Problem: (2022 - 10 Marks)
Inputs: and . Outputs: .
graph TD subgraph Multiplier Architecture P0[P0 = A0 • B0] AND1[A1 • B0] & AND2[A0 • B1] --> HA1[Half-Adder 1: Sum = P1, Carry = C1] AND3[A1 • B1] & HA1 --> HA2[Half-Adder 2: Sum = P2, Carry = P3] end
- Hardware Required: 4 AND gates and 2 Half-Adders.
5. 4-Bit Magnitude Equality Comparator
Major PYQ Problem (2023, 2024, 2025 - 14 Marks)
Question: Design a circuit that compares two 4-bit numbers () and outputs if , and if .
Solution:
- Bitwise Equality via XNOR:
- Total Equality ():
- Circuit: Four 2-input XNOR gates feeding into one 4-input AND gate.
6. BCD Adder Design & Operation
Syllabus Context: Hardware Block Design
Design and operation of BCD adders is a standard 10-mark design question in ECE 2103 examinations.
A BCD Adder is a digital circuit that adds two BCD digits in parallel and produces a BCD sum digit.
The Correction Logic
The sum of two BCD digits () plus a carry-in () can range from to .
-
Standard 4-bit binary addition handles sums up to 15 without a carry-out.
-
To convert a binary sum ( with carry ) into a valid BCD digit (where values must generate a decimal carry and be offset by ), we define a correction detection logic function .
-
Detection Rule: An overflow (sum ) occurs if:
- (the binary sum is ).
- (the binary sum is or ).
- (the binary sum is or ).
-
If , we add binary to the sum. The output carry for the next decimal stage is .
Hardware Block Diagram:
graph TD subgraph BCD Adder Architecture InA[BCD Input A] & InB[BCD Input B] --> Adder1[4-Bit Binary Adder 1] Cin[Carry In] --> Adder1 Adder1 --> BinSum[Binary Sum: S3 S2 S1 S0] Adder1 --> CarryK[Carry K] BinSum & CarryK --> Detect[Detection Logic: F = K + S3•S2 + S3•S1] Detect -->|F| CorrectionBit[Correction Value: 0 F F 0] BinSum & CorrectionBit --> Adder2[4-Bit Binary Adder 2] Adder2 --> BCDOut[Final BCD Sum Output] Detect --> CarryOut[Final BCD Carry Out Cout = F] end
Past Year Questions (PYQs)
- [PYQ 2015, 2018, 2019]: Implement 4 functions using 3 Half-Adders. (12 Marks)
- [PYQ 2018]: Carry Look-Ahead proof . (10 Marks)
- [PYQ 2020]: FA to FS conversion using 1 inverter. (10 Marks)
- [PYQ 2022]: 2-bit binary multiplier circuit design. (10 Marks)
- [PYQ 2023, 2024, 2025]: 4-bit magnitude equality comparator (). (14 Marks)
- [Syllabus / PYQ]: Explain BCD Adder operation and draw its circuit diagram. (10 Marks)