thank you, i believe i have that part working but my issue is how exactly should i go about just adding the last 1 bit number. would an half adder be appropriate here? here is my circuit btwGreetings and welcome to AAC. Since this is Homework Help and not Homework Done For You, you need to show your best attempt to solve your homework assignment.
Try a slightly simpler problem first involving a 3-bit number and a 2-bit result.
Why are you throwing needless complexity at this? There is nothing in the problem statement, as you provided it, that says anything about Hamming distances.yes the square box is a full adder. the purpose of the circuit is to XOR 2 4-bit numbers or 8 bits. That is what the values of x0 and y0 represent. The corresponding values being xor to then get the final output of bits that would be the hamming distance if we just count the number of ones.