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 agoHi Fedail,
Why not making this way?process(a,b)
BEGIN
IF (a < b) THEN
altb <= "1";
ageqb <= "0";
agtb >= "0";
aeqb <= "0";
ELSIF(a = b) THEN
altb <= "0";
ageqb <= "1";
agtb >= "0";
aeqb <= "1";
ELSE
altb <= "0";
ageqb <= "1";
agtb >= "1";
aeqb <= "0";
END IF;
END Regards