You are on page 1of 22

Digital Electronics.

8-Bit Parallel adder/subtractor circuit.


Students:
Gustavo Antonio Palma Paz
Parcifal Anael Espritu Lpez
Omar Alejandro Longoria Vzquez
Objectives:

Build an 8-Bit Parallel adder/subtractor circuit.


Show the functions of the circuit correctly.
Show the outputs and inputs using different colors LEDs.
Material:

6 DM74S86N (Quad 2-Input Exclusive-OR Gates)


4 DM74LS08N (Quad 2-Input AND Gates)
2 SN74HCT32N (Quad 2-Input OR Gates)
4 Breadboards.
4 Dip Switches.
24 different colors LEDs.
40 330 Resistances.
Full Adder Diagram
8-bit parallel adder/subtractor circuit
diagram.
ICs Datasheets
DM7486 Quad 2-Input Exlusive-OR Gate
DM7408 Quad 2-Input AND Gate
DM74LS32 Quad 2-Input OR Gate
General view
2
1 3

Section 1: These part is where we


control our inputs

Section 2: This part contains all


the logic gates and the main
structure of our project.

Section 3: These are our outputs.


Diagram with the real color wires.
Section 1 (Input control)

We control our inputs with


a b four four-Bits Dip Switches.

a) These are the A inputs


(MSB-LSB from left to right)

b) These are the B inputs


(MSB-LSB from left to right)
Section 2 (Circuit; Logic Gates)

Row 1: These are our DM7486


Quad 2-Input Exclusive-OR Gates

1 2) These are our DM7408


Quad 2-Input AND Gates

3) These are our DM74LS32


2 3 2 2 3 2 Quad 2-Input OR Gates
Section 3 (Outputs)

8 LEDs of different colors


show our otuputs, the
yellow one is the sign bit.
The rest of them represent
the output bits position:
Sign bit, 64s, 32s, 16s, 8s,
4s, 2s, 1s. (from left to right)
Limitations

We can only add two numbers resulting +127 or -128.


Otherwise the result converge in twos complement overflow and
the result is modified because the sign of the twos complement
result changes.
Examples

Inputs

Output

Inputs

(signed 8-bit)

Output

Inputs

Output
Inputs

Output

83-(-20)=103
Inputs
01010011
-11101100(2s complement)
---------------
01100111

Output

Inputs

Output
Ways to improve our circuit

We wanted to improve our circuit showing in three displays the result


of the adding and subtracting of our two 8-bit numbers, but we needed
to buy four binary to BCD converters (74185), each one with a cost of
$30 and also three more BCD to 7-segment display decoders
(74LS47), each one with cost of $28. So we decided that it was going
to be very expensive. Because we already had spent $300. We could
also use more Breadboards to avoid a lot of wires crossing between
themselves.
Thank You!

Do you have some questions?

You might also like