Forum Discussion
Altera_Forum
Honored Contributor
16 years agocomparator
i need to do Greater or equal than Less or Equal than not equal but it is not working with me could you check this code i have done greater or equal than but it is not workin but a...
Altera_Forum
Honored Contributor
16 years agoi solve the problem wih other way
if a > b THEN
compare <= "010110";
ELSIF a < b THEN
compare <= "001101";
ELSIF a = b THEN
compare <= "100011";
ELSE
compare <= "111111";
END IF;
END PROCESS;
agtb <= compare(0);
altb <= compare(1);
aeqb <= compare(2);
ageqb <= compare(3);
aleqb <= compare(4);
anotb <= compare(5); put could you check this image please why this happened with me i mean this small spike http://i25.tinypic.com/hreuzo.png