Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

CR & LF character problem

Altera_Forum
Honored Contributor II
2,257 Views

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
0 Kudos
0 Replies
Reply