Forum Discussion
Altera_Forum
Honored Contributor
8 years agothanks Anand and Chris for your help but i think that is not what im trying to do with my project. I think i should use 'and' in the condition.
i tried to change my if statement condition in my first comparator code but it ended up error. begin if (q<= b && 0<=b>=19) then c<='1'; else c<='0'; end if; the error says this "Error (10500): VHDL syntax error at comparator.vhd(12) near text "&"; expecting "(", or an identifier, or unary operator" and im not sure where i do wrong and what to change. can you guys help? thanks