Skip to content
๐Ÿ”ข Subtractors

๐Ÿ”ข Subtractors

Subtractor circuits are foundational in any complex logic circuit

โš™๏ธ Half Subtractor

Borrow
	    A
-       B
-------------
        Diff

Logic Equations $\text{Diff} = A \oplus B$
$\text{Borrow} = \overline{A} \cdot B$

โ„น๏ธ

Notes

  • No borrow-in input
  • Cannot be chained directly for multi-bit subtraction
  • Gate count: 1 XOR, 1 AND, 1 NOT
ABDiff (AโŠ•B)Borrow ($\overline{A} \cdot B$)
0000
0111
1010
1100

More on Adders


๐Ÿง  Full Subtractor

Borrow-out   Borrow-in
	         A
-            B
------------------------
		     Diff

Logic Equations $\text{Diff} = A \oplus B \oplus B_{in}$
$B_{out} = B \cdot B_{in} + \overline{A} \cdot (B \oplus B_{in})$

โ„น๏ธ

Notes

  • Can be chained for multi-bit subtraction
  • Minimal logic avoids redundancy using XOR
  • Exhaustive logic is more intuitive but less gate-efficient
  • Gate count (minimal): 2 XOR, 2 AND, 1 OR, 1 NOT
ABBinDiffBout
00000
00111
01011
01101
10010
10100
11000
11111

More on Full Subtractors

Last updated on