MedVision ad

Fulladder (1 Viewer)

f001error

New Member
Joined
Jun 17, 2003
Messages
26
okay the example in the text book is just confuseing and the teacher doesnt have any idea, so Full adders are kinda 2 half adders stuck togeather.

but the input for the second halfadder is the carry and something else, what is the other input since the sum from the first is allready finshed :confused:
 

Comedy_Al

Member
Joined
Aug 28, 2003
Messages
109
Location
Newcastle
The sum from the first half adder goes into the second, along with the 3rd input. This then feeds out with a sum and a carry, and both carries go into a Or gate, which becomes the final carry. Let me know if you want a diagram :)
 

ErgoSum

Member
Joined
Oct 19, 2002
Messages
61
Gender
Undisclosed
HSC
2002
Full Adder

To understand the full adder, you have to understand a half adder
See the half adder allows one to add two one bit numbers.
Thus you can do
0+0=0
1+0=1
0+1=1
1+1=? - This is the important line, in the decimal number system 1+1=2. However in binary 2 is 10 ... thats two numbers and you only have 1 sum out.
So what happens
consider 01 +01=10
Its analogous to adding 5+5=10 ... What happens, the one is carried across one space, when something needs to be carried we call this the cary out
so for a half adder we now have
A B | Sum | Carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Of course now Sum looks like A XOR B and Carry Looks like A and B .. which is what we want

So wow thats all and good
But then what is a full adder?
Well... what happens if you wanted to add a 3 bit binary number
say 011 + 011
011 +
011
-----

Now computers like ppl will start by adding up the least significant numbers. So we start at the rightmost side and we find 1+1. Thats ok you say, we can do it with a half Adder... and indeed we can
As seen above you get 1+1=10
Or sum=0 Carry Out=1

but what happens now? we move left and try adding up the middle numbers. The two middle numbers are 1 and 1 .. if we added them using a half adder we would again get 10. But thats not right, what happened to that carry out from the first equation? What happens is that the carry out must be added to our current column so it becomes 1 +1 +1 =11. But from the truth table of the half adder, you can see that you only have 2 inputs. That is why you need a full adder, to take into account the possibilty that the numbers you are adding have a carry in.

So Truth Table for Full adder looks like
Cin A B | Sum | Cout
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1

As you can see the truth table takes into account the posibility that not only must you add the two numbers but also there is an additional carry-in
 

ErgoSum

Member
Joined
Oct 19, 2002
Messages
61
Gender
Undisclosed
HSC
2002
no problem

hehe
After spending all of last semester studying 101 fun things you can do with various flip flops (also known as elec1101) im full of this sort of handy information.

Hmm ive seen your sig nefore on a www.thinkgeek.com t-shirt, cept it reads there are 10 kinds of people in the world, those who understand binary and those who dont.
 

f001error

New Member
Joined
Jun 17, 2003
Messages
26
Re: no problem

Originally posted by ErgoSum
hehe
After spending all of last semester studying 101 fun things you can do with various flip flops (also known as elec1101) im full of this sort of handy information.

Hmm ive seen your sig nefore on a www.thinkgeek.com t-shirt, cept it reads there are 10 kinds of people in the world, those who understand binary and those who dont.
meh well i didnt think i was smart enough to think up something no one else in the world has ever through up before
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top