Professional Documents
Culture Documents
EE-261Digital Logic
Design
Binary adders and
subtractors
01
10
X Y
0
0
1
1
0
0
0
1
0
1
1
0
0
1
0
1
Full adder
Full adder
Half Subtractor
Subtracting a single-bit binary value Y from anther X (I.e. X -Y ) produces a
difference bit D and a borrow out bit B-out.
XY
1
o
o
o
o
o
1 0 0
D(X,Y) = (1,2)
D = XY + XY
D = XY
B= (1)
B = XY
Full Subtractor
The circuit has three inputs and two outputs. The three inputs X, Y,
Z denote the minuend, subtrahend, and previous borrow
respectively. The two outputs D and B represent the difference and
output borrow, respectively.
Outputs
Inputs
X
0
0
0
0
1
1
1
1
Y
0
0
1
1
0
0
1
1
Z
0
1
0
1
0
1
0
1
D
0
1
1
0
1
0
0
1
B
0
1
1
1
0
0
0
1
B = XZ + XY + YZ