I have the following code:
DATA_LCD <= DATA_ROM when SW(1)='0' or char_code<97 or char_code>122 else
std_logic_vector(char_code-32); -- no modification in this code
DATA_ROM when SW(2)='0' else
std_logic_vector(char_code+1);
But when i try to compile it i get following errors:
Error (10500): VHDL syntax error at LCD_FSM.vhd(57) near text "="; expecting "(", or "'", or "."
Error (10500): VHDL syntax error at LCD_FSM.vhd(57) near text "when"; expecting "(", or "'", or "."
How can I fix it?
DATA_ROMjust comes from nowhere, I don't get what you're trying to do there.