(This is all related to my trying to understand my question here.)
Let's consider the addition of two n-bit integers, \$x = x_{n-1}...x_0\$ and \$y\$. Let their sum be \$s\$.
For the addition of unsigned integers...
If I want to add two n-bit numbers, is it correct to say that I simply need to take the carry out \$c_{n}\$ and set \$s_n\$ as such, \$c_{n} = s_n\$?
For the addition of signed integers using 2's complement (does this matter?) representation...
If I want to add two n-bit numbers, is it correct to say that I have to sign-extend each of \$x,y\$ to n+1 bits and use an extra full-adder so that \$s_n\$ can be computed directly?
In particular, I am interested in knowing if I must include an extra full adder here. Or is there is something clever I could do to avoid this, while still capturing the sum of any two n-bit numbers.
Edit: In response to a query below, here is an example which shows that with signed numbers we must sign-extend and cannot simply just "use the carry out bit" from the last adder as we can with the unsigned case (see the accepted answer to my linked question):
The issue is that without sign extension, the "extra bit" that one might suggest keeping can be wrong. In the below, the extra 0 bit is wrong (if we were to keep it).
101011
+ 000000
-------
0101011
One might ask why can't we just delete the extra bit if it might be wrong: after all, in the above we would get the correct 101011 output under this strategy. But of course that won't work in general (we know this on the general grounds that we need an n+1 bits to account for the addition of two n-bit numbers) and also by explicit example:
101011
+ 100000
-------
1001011
Here ignoring the carry out of the final stage gives us the wrong answer again, 001011. Thus neither keeping nor excluding the final bit gives us the right answer in general, only sign extension will.
Edit2: Per a very helpful comment from @periblepsis, I think the "keep the carry out bit" method described above can be rescued at the cost of an extra couple gates (which of course hurts the benefit of not using an extra full adder in this method).
As per the schematics above it appears that we can basically keep the carry out bit if there is overflow or, if there is not, then we can sign extend from the final sum bit.