Forum Discussion
Altera_Forum
Honored Contributor
15 years agoTrue parity generator would be:
process (a, b, c) odd_out <= ((a xor b) xor c); even_out <= (not odd_out); end process; If you actually want both outputs low when inputs are all low, then process (a, b, c) if (a or b or c) then odd_out <= ((a xor b) xor c); even_out <= (not odd_out); else odd_out <= '0'; even_out <= '0'; end if; end process;