Forum Discussion
Altera_Forum
Honored Contributor
14 years agoYour process looks ok to me
though you can simplify it to:
process(A,B)
begin
if (A = '1' and B = '0') or (A = '0' and B = '1') then
C <= '1';
else
C <= '0';
end if;
end process;
either way it should work. Change the entity name to something other than xor2 just in case. Otherwise there is some thing wrong with your observation.