Check an 8-bit data word that arrived with an even parity bit. The error output is 1 when the nine received bits contain an odd number of ones, meaning a bit was corrupted. Inputs: data, 8 bits; parity, the received parity bit. Output: error, 1 when parity does not match the data. The testbench applies all 512 combinations of data and parity.