- Joined
- Nov 6, 2009
- Messages
- 3
- Reaction score
- 0
Hi! I am rather new to VHDL. I'm getting an error I don't understand why.
This is a part of the code:
The error is highlighted on the line
Seems like it doesn't recognize the operator +. This is weird since I've done it like this in an earlier excercise. Any idea why?
This is a part of the code:
Code:
-- state register
process(clk, reset)
begin
if (reset = '1') then
state <= S0;
clkcount <= X"00";
elsif clk'event and clk = '1' then
state <= nextstate;
clkcount <= clkcount + '1';
end if;
end process;
The error is highlighted on the line
and the error is Error (10327): VHDL error at part1.vhd(46): can't determine definition of operator ""+"" -- found 0 possible definitions.clkcount <= clkcount +'1';
Seems like it doesn't recognize the operator +. This is weird since I've done it like this in an earlier excercise. Any idea why?