Guest
#3467264
Hi all! I would like to write a code for a comparator in vhdl-ams. Its
the first time I use this langage so I'm totally lost... (by the way if
you know a link with complet lesson on this langage it will be great).
Anyway, I find a simple code on the web, but when I run the entity only,
the following error is occuring:
library ieee;
use ieee.std_logic_1164.all;
use ieee.electrical_systems.all;
entity comparator is
--generic (level : Real := 2.5); -- threshold
port(terminal a: electrical; -- analogic in
signal s : out std_logic); -- digital out
end comparator;
This is the error:
port(terminal a: electrical; -- analogic in
|
ncvhdl_p: *E,MISCOL (comparator_ent.vhdl,9|14): expecting a colon (':')
87[4.3.3] 93[4.3.2].
That seem easy but I compare with others code on the web and I find no
error. Furthermore I noted that the key word 'terminal' is not in color
like the others key words. Maybe its a library issue, I don't know...
Can you help please ??
