Professional Documents
Culture Documents
ADDER / SUBTRACTOR
Laboratory 4
[STUDENT NUMBER & STUDENT NAME]
DUE DATE
TOTAL MARKS
Plagiarism
The assignment is based on an individual response. The report must be completely your own work
and you must not copy from others. Any plagiarized work will be zero-rated. Any reference material
you use (books, journals, Internet, magazines etc.) must be clearly identified in your report using
procedures in the Harvard System of Referencing.
Theory
It adds ( + means addition ) A and B, and output sum (S) and carry out.
C0
+A
+B
A4
B4
A3
B3
C0(carry in bit-0)
A1
B1
A2
B2
___________________________________
C4
S4
S3
S2
S1
Procedure
1. Connect the circuit as shown in Figure 1.
2. Add and subtract the binary numbers of Tables 1-1 and 1-2. At the same time,
check your results by conversion to decimal.
Page 2 of 4
plus
Binary:
plus
C0
A4 A3 A2 A1
B4 B3 B2 B1
Co
1 0 1 0
0 1 0 1
1 0 1 0
0 0 1 1
1 1 1 1
0 1 1 0
1 1 1 1
1 1 1 1
C4
sum
S4 S3 S2 S1
Decimal:
A+B = S
Binary:
A
minus
A4 A3 A2 A1
B4 B3 B2 B1
1 0 1 0
0 1 0 1
1 0 1 0
0 0 1 1
1 1 1 1
0 1 1 0
1 1 1 1
1 1 1 1
0 1 0 1
1 0 1 0
C4
Page 4 of 4
difference
S4 S3 S2 S1
Decimal:
A-B = D