Forum Discussion
Altera_Forum
Honored Contributor
10 years agoVHDL problem
Hi everyone, I'm a new user of FPGA. I have 2 LEDs and a clock of 32KHz. So I wanna light up LED1 then light off LED 1 and light up LED2. Im trying to do something in VHDL, but it seems ...
Altera_Forum
Honored Contributor
10 years agointeger is not an array type, so you cannot use it like and array. Your count signal declaration says you want 11 integers. If you wanted a single integer with 11 bits, you should use the unsigned type (before you do this - delete the non-standard std_logic_unsigned/signed and std_logic_arith libraries from your library list - otherwise you're going to get all sorts of conflicts).
You need: signal count : unsigned(10 downto 0); secondly, '9' is a character, not an integer value. change it to if count = 9 then... Finally, do not do assignments outside of the clocked part of the process.