My teacher assigned a project where we have to read in 8 bits and output the number of 1's as a 4 bit number using logic gates. He did not teach us about half adders, full adders, or anything past the basic logic gates (and, or, nor, etc...).
I've done research on half and full adders but I still don't understand how to get a 4 bit output after using them to add the 8 bits together.
I've done research on half and full adders but I still don't understand how to get a 4 bit output after using them to add the 8 bits together.