I'm just having some difficulty understanding the full-adder and the how the carry-in/out are obtained and what effect it has on the circuit.
See figure attached.
The original question was to design the simpliest circuit that could determine how many bits in a three-bit unsigned number are equal to 1.
With the circuit posted in mind lets consider the scenario where z2=z1=z0=1.
With this we should obtain Cout = 1 and S = 1, giving us a binary value of 3, thus indicating 3 ones were counted in the input.
The part I don't understand is how the full adder obtains these results.
How does z2 + z1 = s = 1, and why is Cout = 1? Also, what is the significance of the carry in? If I change the values of the carry in how does it change the output?
If anyone could clarify it would be greatly appreciated.
Thanks again!
See figure attached.
The original question was to design the simpliest circuit that could determine how many bits in a three-bit unsigned number are equal to 1.
With the circuit posted in mind lets consider the scenario where z2=z1=z0=1.
With this we should obtain Cout = 1 and S = 1, giving us a binary value of 3, thus indicating 3 ones were counted in the input.
The part I don't understand is how the full adder obtains these results.
How does z2 + z1 = s = 1, and why is Cout = 1? Also, what is the significance of the carry in? If I change the values of the carry in how does it change the output?
If anyone could clarify it would be greatly appreciated.
Thanks again!
Attachments
-
55.9 KB Views: 45