Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Operator problem VHDL. Beginner

 
Thread Tools Search this Thread
Old 11-06-2009, 11:53 AM   #1
Default Operator problem VHDL. Beginner


Hi! I am rather new to VHDL. I'm getting an error I don't understand 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
Quote:
clkcount <= clkcount +'1';
and the error is Error (10327): VHDL error at part1.vhd(46): can't determine definition of operator ""+"" -- found 0 possible definitions.

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?


artvandelay
artvandelay is offline   Reply With Quote
Old 11-06-2009, 03:24 PM   #2
StuartHobday
Junior Member
 
Join Date: Sep 2009
Location: Dorset
Posts: 6
Default
Add the following to your library declarations

USE ieee.std_logic_unsigned.ALL;


StuartHobday
StuartHobday is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: beginner kyohi Computer Information 23 03-15-2008 02:34 PM
Re: beginner Robert Maas, see http://tinyurl.com/uh3t Computer Information 3 02-11-2008 07:57 AM
Total beginner drops knitting and tries networking Suzy Wireless Networking 2 12-20-2007 12:49 AM
Help a beginner!!! =?Utf-8?B?U2Ft?= Wireless Networking 4 04-21-2005 07:50 AM
PCAnywhere: Beginner skim500 Computer Support 3 09-16-2004 04:58 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46