I have some problem understanding a full adder

In a full adder there is a Cin and Cout... what i don't understand is what do I need to Cout.

I just don't undestand the value of Cout in the full adder

Thanks

If you are working on data of more than a bit, which Cin implies, then you need Cout to be the Cin of the next higher bits.

If you add bit a to bit b with Cin and c being the bit resulting,

c= a xor b xor Cin

Cout = (a and b) or (a and Cin) or (b and Cin)

In my last class, we made a ALU. We worked with 4 bit adder. It accepts
2 4-bit number and returned the addition of those number, but you knew
that. One usefulness I used the cout was to detect an overflow. Since a
4 bit number has the max representation 2^4-1, adding 2 4-bit could
cause an overflow, thus when carry out is true, there is an overflow,
since the highest bit carried.

I brief understand the concept.

I will work on it today and report and problems

thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.