I am supposed to implement the logic circuit of an ECC Generator. The circuit itself has 8 Data bits (D1-D8) as inputs and as outputs it generates a 13-bit vector, which is the hamming code (with parity bits P0-P4) that protect the Data bits.
Therefore, we have:
P1 P2 D1 P3 D2 D3 D4 P4 D5 D6 D7 D8
P1 = XOR(3 5 7 9 11)
How would I implement P1 in a circuit with XOR gates to begin with?
If I feed inputs 3 5 7 9 11 into a XOR gate, will it indeed give me the result of the parity bit 1 (P1)?
This is the schema of the ECC Generator:
Thank you so much!!!