Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

CR & LF character problem

Hello,

I get a strange error message when I use this constant in a generic:

whitelist => "ABCDEFGHIJKLMNOPQRSTUVWXYZ" & "abcdefghijklmnopqrstuvwxyz" & " 0123456789" & CR & LF

Here's the error message:

Error (10315): VHDL syntax error at utils.vhd(256): object with character type cannot contain character '

'

The error message points to the implementation of the component which uses the generic:

entity char_filter is
    generic (
        whitelist : string
    );
    port (
        char : in character;
        char_ok : out std_logic
    );
end char_filter;
It simulates fine with ModelSim Altera 11.1 and it works as soon as I remove the control characters from the literal.

I'm using Quartus II WebEdition 11.1

Can anyone tell me what's going on here?

Regards

Aydan
No RepliesBe the first to reply