EEE211L - Lab 5 - Binary Arithmetic
EEE211L - Lab 5 - Binary Arithmetic
A. Objectives
B. Theory
Figure B.2:
Logic Diagram
and Truth Table
of a full adder
• Trainer Board
• 1 x IC 7483 4-bit binary adder
• 2 x IC 7486 quadruple 2-input XOR gates
New Apparatus:
IC 7483: The 16-pin 7483 IC is a 4-bit full adder. That means, it can take
two 4-bit binary numbers (A4A3A2A1 and B4B3B2B1) and calculate the sum
(S4S3S2S1). The input carry (if any) is connected to C0 and the output carry
is obtained from C4. Unlike most other ICs used so far, in the 7483, the 5V
VCC needs to be connected to pin 5 and the ground to pin 12.
D.1 Procedure
1. Construct the 4-bit adder-subtractor circuit of Figure D.1.1 using 4-bit full adder and the XOR gates. Use
four binary switches to represent the bits of input A and four more binary switches to represent the bits of
input B. Use another switch for the mode select M. Use 4 LEDs to view the output S and another LED for
the output carry C4. (Be)
2. Complete the operations in Table F.1.1.
i. For each operation, convert the first operand to binary as A, and the second operand as B.
ii. Write down the value of M required for the operation. M should be 0 for an addition operation and
1 for a subtraction operation.
iii. Note down the values of the output carry C4 and data output S4-S1. Verify the results.
• Trainer board
• 2 x IC 7483 4-bit binary adder
• 1 x IC 7408 quadruple 2-Input AND gates
• 1 x IC 7432 quadruple 2-Input OR gates
D.2 Procedure
1. Complete Table F.2.1 for the BCD sum. In BCD, a group of four bits can only represent the decimal values
from 0 to 9, after which we need to use higher order bits. Here, ‘C’ represents that higher order bit.
2. Construct the circuit of Figure D.2.1. Unlike the previous circuit, this is a 4-bit adder despite the fact that
two 7483 ICs are being used.
i. The output of the first IC7483 (the upper one in the figure) is fed into the input of the second IC7483.
ii. The output of the second IC7483 (the lower one in the figure) is connected to four LEDs.
iii. The combinational circuit created with AND and OR gates does the work of converting the binary sum
to the BCD sum.
3. Verify the outputs in Table F.2.2.
Questions:
1) Explain how the XOR gates and the M bit are being used in the 4-bit adder-subtractor to perform addition
and subtraction operations.
2) Simulate a 4-bit adder in Logisim using basic logic gates. Provide a screenshot of the Logisim circuit
schematic with your report with the two inputs set to decimal 4 and 7.
3) Derive the circuit for the BCD adder (Fig D.2.1). Your explanation should cover the following points:
a) The functions of the top and bottom 7483 4-bit adders.
b) The inputs and outputs of the two adders.
c) The function of the combinational circuit (AND and OR gates) between the two adders.
d) The principles using which the binary sum is being converted to BCD.
F. Data Sheet:
Instructor’s Signature: ............................
Group: Section: Date:
Operation M A B C4 S4 S3 S2 S1
7+5
4+6
9 + 11
15 + 15
7–5
4–6
11 – 2
15 – 15
Table F.1.1
Table F.2.1
9+0
9+1
9+2
9+3
9+4
9+5
9+6
9+7
9+8
9+9
Table F.2.2