r/AskComputerScience • • Feb 08 '25
Adding with Logic Gates, full/half adder question
Hello! This might be a bit of a long shot as a question but here goes: I'm currently reading Code by C.Petzold. I just finished chapter 'Adding with Logic Gates' in which he demonstrates how to build an 8-bit Adder. He sums up the chapter by saying that we can use 8 full adders to do this. I'm wondering if a half-adder can be used for the 1st bit + 7 full adders? I understand the idea of using a full-adder on the first element if you're adding 16 bits and it's the 9th bit (1st bit of the 2nd 8-bit Adder), you need a full adder for the carry-in from the 8th bit of the 1st adder. But if you're just wanting to add 8 bits, can you use a half-adder for the very first bit? I understand that this doesn't have much real-world application, but I'm just wondering about the technical possibility. Thank you!
View all comments
Show parent comment
1
u/[deleted] Feb 08 '25
Neat, thanks a lot!