Would you take a 7-bit logic variable as an input and return an 8-bit logic output with the parity bit being the MSB (leftmost bit) of the output? In a system that uses even parity you want the total number of 1 bits in the output vector to be even, right? Can the the unary ^ operator can be used to calculate even parity?
Trying to figure out what that would look like?
I started something like this:
Sorry if this is more than one question.