2079 6

CSC116 · 2079 · 5 marks

Derive the Boolean expression for sum and carry of half adder. Draw its combinational circuit. Implement it using only NOR gates.

Derive the Boolean expression for sum and carry of half adder. Draw its combinational circuit. Implement it using only NOR gates. [5]

Digital LogicChapter 4: Combinational LogicAddersNumerical: half adder derivation

Half Adder: Derivation, Circuit, and NOR Implementation

Given

  • Inputs: two single-bit binary values, $A$ and $B$
  • Outputs: Sum $S$, Carry $C$
  • Constraint: implement using only NOR gates

All required information is present in the question.


Solution

Truth Table

ABSum (S)Carry (C)
0000
0110
1010
1101

Boolean Expressions

Sum: $S = 1$ for the minterms $(A=0,B=1)$ and $(A=1,B=0)$:

$$S = \bar{A}B + A\bar{B} = A \oplus B$$

Carry: $C = 1$ only when both inputs are 1:

$$C = A \cdot B$$

Combinational Circuit (XOR + AND)

A ──┬───────────┐
    │          [XOR]───── S = A ⊕ B
B ──┼───────────┘
    │
    ├───────────┐
    │          [AND]───── C = A·B
B ──┘───────────┘

NOR-Only Implementation

Basic NOR identities:

  • $\bar{X} = X \text{ NOR } X$
  • $X + Y = (X \text{ NOR } Y) \text{ NOR } (X \text{ NOR } Y)$
  • $X \cdot Y = (X \text{ NOR } X) \text{ NOR } (Y \text{ NOR } Y)$

Carry $C = A \cdot B$. Using AND-from-NOR:

$$C = (A \text{ NOR } A) \text{ NOR } (B \text{ NOR } B) = \overline{\bar A + \bar B} = A\cdot B$$

Sum $S = A \oplus B$. The standard 5-gate NOR realization of XOR:

GateInputsOutput
G1$A$ NOR $B$$\overline{A+B}$
G2$A$ NOR G1$\overline{A + \overline{A+B}} = \bar A(A+B) = \bar A B$
G3$B$ NOR G1$\overline{B + \overline{A+B}} = \bar B(A+B) = A\bar B$
G4G2 NOR G3$\overline{\bar A B + A\bar B} = \overline{A\oplus B}$
G5G4 NOR G4$A \oplus B = S$

Verification of G4/G5: $\text{G4} = \overline{S}$, so $\text{G5}=\overline{\overline S}=S$. Correct.

Circuit diagram (NOR gates only):

A ─┬───────────[G1]────┬───────[G2]───┐
   │      B ────┘       │  A ───┘      │
   │                    └──[G3]────┐   ├─[G4]──[G5]── S
   │              B ───────────────┘   │  (G4 fed twice)
   │
   ├─[Ga: A NOR A = A']──┐
   │                     ├─[Gc]── C
   └─────────────────────┘
       B ─[Gb: B NOR B = B']──┘

Gate count:

  • Sum: 5 NOR gates (G1-G5)
  • Carry: 3 NOR gates (Ga = $\bar A$, Gb = $\bar B$, Gc = final NOR)
  • G1 is shared, but counting independently: Sum = 5, Carry = 3.

Summary

OutputExpressionNOR gates
Sum$S = A \oplus B$5
Carry$C = A \cdot B$3

A wiring trap worth knowing: one tempting XOR construction does not work. Taking:

  • G4 = G1 NOR G2 = $\overline{\overline{A+B} + \bar A}$. Evaluate: $= (A+B)\cdot A = A$, not $A\bar B$.
  • G5 = G1 NOR G3 = $(A+B)\cdot B = B$, not $\bar A B$.
  • G6 = G4 NOR G5 = $A$ NOR $B = \overline{A+B}$, which is NOT $A\oplus B$.

So those gate assignments do not yield the XOR. The correct minimal XOR uses 5 NOR gates with the wiring shown above, giving $S = A\oplus B$ and $C = A\cdot B$.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.