Forum Discussion
Altera_Forum
Honored Contributor
14 years agocomparator with memory
Hello, I'm starting with vhdl, and i'm try to write any kind of comaprator with memory of the out signal. Can anyboidy help me.. Program have to check state of input from keypad (ps2) and chec...
Altera_Forum
Honored Contributor
14 years agoThe OR chain you wrote is not correct; it will reduce in a
((li2) /= (li1)) and (li1 = X"7F") condition, since you are logically ORing the 8bit codes of keys. You should write: ... (li1 = X"21") OR (li1 = X"23") OR (li1 = X"24") OR ....