Forum Discussion

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

I cant find any mistake but my compiler says its a mistake

Dear all,

Please help me out her.

counter <= counter + '1';

this is my instruction

this is my error. So what is the mistake in it?

Error (10327): VHDL error at led_blink.vhd(24): can't determine definition of operator ""+"" -- found 0 possible definitions

11 Replies

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

    Thats because you havent defined a "+" function, or havent included a package that defines a "+" function that can add together whatever the type of counter is and '1' (which I assume you expect to be a std_logic)

    Why not include all the code, not just a single line, as it all depends on what libraries you have included and what type counter is.