3-Bit Parity Function: "Control-Oriented"

3-Bit Parity Function: "Control-Oriented"

if A = '1' then

if B = '1' then

if C = '1' then parity <= '1';

else parity <= '0';

endif;

else

if C = '1' then parity <= '0';

else parity <= '1';

endif;

end if;

else

if B = '1' then

if C = '1' then parity <= '0';

else parity <= '1';

endif;

else

if C = '1' then parity <= '1';

else parity <= '0';

endif;

end if;

end if;

VLSI ‘91, Edinburgh

Previous slide Next slide Back to the first slide View Graphic Version