Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

EEE-251 Digital Logic Design Laboratory

Adder-Subtractor Experiment

Name: Ahmet Yusuf Yatkın


Dep.: Electrical and Electronics Engineering
Student Number: 18290239
ahmetyusufyatkin@gmail.com

Abstract— In this experiment, we inspect 4-bit adder and etc.) Then we set +5V to the cards. Then we set S2 to pulser
subtractor circuits, and checked the outputs are match with and S3 to 1 position in PC111 Card (Clock Circuit) and we
theoretical background. Our aim was demonstrating the how set S2 switch to off on PC121 card. When we set S2 switch
these circuits work and what output will they give. Our results on PC111 to Clock, Register A-B is load full. But Output still
matched with theoretical information.
indicates 0 (B led is dimed (B led indicates number is positive
Keywords— 4-bit adder, 4-bit subtractor, circuit. or negative)) because PC121 Card’s S2 switch is still off (Not
subtract mode). Then we set A register to 1111 and B register
I. INTRODUCTION to 0111. Their Sum must be 01000.When we set S2 switch to
Adder circuits designed to add 2 number (in binary form) subtract mode, we see subtraction is equals to what we
within their max bit size. Also, they are important for building guessed on: 01000. Then we set S2 switch to off again to set
Microprocessors/bigger logical circuits. Also, subtractor Register numbers different to try another subtraction. We
circuits does the same but instead they subtract 2 numbers reset the registers and set A register to 0011 and B register to
within their max bit size. Also, every adder can be modify to 1111. Our predict of their subtract is 10100 (first 1 indicates
be a subtractor easily which I did in my simulation. Our number is negative). When we set S2 switch to subtract mode,
experiment aims to demonstrate behavior of adder-Subtractor we see our predict was correct. Our last experiment, weirdly
circuits. We gave inputs to these circuits and observed the subtractor didn’t work correctly. Our predicted sum isn’t
output. match with subtractor’s circuits panel. We switched PC1 and
PC2 DC power off to finish the experiment. Detailed results
II. THEORETICAL BACKROUND
and why last experiment didn’t work correct will be given in
First, I began with Adder circuit, Adder circuits basically results part.
adds two binary number. In our experiment we set needed
supplies to initial setting with given introductions (Test Card, III. EXPERIMENTAL RESULTS
Clock Card, Oscilloscope etc.) Then we set +5V to the cards. For the first experiment, adder sums the binary numbers
Then we set S2 to pulser and S3 to 1 position in PC111 Card correctly except our last experiment. In our last experiment,
(Clock Circuit) and we set S2 switch to off on PC121 card. our Registers was both 1111 and sum must be 11110. But
When we set S2 switch on PC111 to Clock, Register A-B is instead we see 11010 in Circuits sum panel. Our Led
load full. But Output still indicates 0 because PC121 Card’s numbered 4 didn’t working while it supposed to do. We
S2 switch is still off (Not add mode). We probe the Register checked input of 4 numbered Led, input was HI, This means
A; it shows 1111 binary number which equals 15 in decimal. that our adder summed correct, but our 4 numbered Led is
We probe the Register B; it shows 1111 binary number which broken or burnt. I did all these experiments in Falstad
equals 15 in decimal. Their Sum must be 30 in decimal, simulation app (I did 8-Bit versions)(Which I prepared before
which equals 11110 in Binary. When we set S2 switch to add the experiment for learning, and as its ready, I use it, I don’t
mode, we see Sum is equals to what we guessed on: 11110. re-prepare all circuit for Proteus to afford Labor.) and my
Then we set S2 switch to off again to set Register numbers Falstad simulations prove all of these situations too.
different to try another sum. We reset the registers and set
Both to 1010. Our predict of their sum is 10100. When we set For the second experiment, subtractor subtracts the binary
S2 switch to add mode, we see our predict was correct. Our numbers correctly except our last experiment. In our last
last experiment, weirdly adder didn’t work correctly. Our experiment, our A register was 1110 and B register was 0000
predicted sum isn’t match with adder circuits panel. We and subtraction must be 01110. But instead we see 00110 in
switched PC1 and PC2 DC power off to finish the Circuits subtraction panel. Our Led numbered 8 didn’t
experiment. Detailed results and why last experiment didn’t working while it supposed to do. We checked input of 8
work correct will be given in results part. numbered Led, input was HI, This means that our subtractor
subtracted correct, but our 8 numbered Led is broken or burnt.
Second, I continue with Subtractor circuit, Subtractor I did all these experiments in Falstad simulation app and my
circuits basically subtracts two binary number. In our Falstad simulations prove all of these situations too.
experiment we set needed supplies to initial setting with
given introductions (Test Card, Clock Card, Oscilloscope
IV. CONCLUSION
To conclude, all of our experiments, theoretical
information and the simulation proved each other. All results
are same in these three ways. With these experiments, we’ve
learned all behaviors about adder and subtractor circuits with
checking different combinations of each circuit.
REFERENCES
[1] Lecture Videos of related week published by Ankara University
[2] Experiment Videos of related week published by Ankara University
[3] Researcher knowledge

You might also like