Forum Discussion

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

Error 10500 Help me !!!

so this is one of my first VHDL codes...

(havent finished the cnt select part on the bottom^^)

I get some "10500 vhdl Syntax error"s between 'begin' and 'with cnt select'... But why?? :(:confused:

I can't find anything missing ._.

library ieee;

use ieee.std_logic_1164all;

entity helloworld is

port(key0: IN STD_LOGIC;

Hex0: OUT STD_LOGIC_VECTOR(6 downto 0)

);

end helloworld;

architecture behaviour of helloworld is

signal a: STD_LOGIC;

signal cnt: STD_LOGIC := '0';

begin

a <= not key0;

if a = '1' then

cnt <= cnt + 1;

end if;

if cnt = '16' then

cnt <= '0';

end if;

with cnt select

.

.

.

end behaviour;

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    if statements must be in a procedural block of code - like a process

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    @Tricky:

    Oh thanks a lot , that must be the mistake^^ I didn't realize that as I'm more used to write in C.

    I'll try again now :)

    @sstrell:

    Thank you but this mistake is only here in the Thread from typing.