Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > c(0) <= a(0) + a(1); Found 0 definitions for operator "+"

Reply
Thread Tools

c(0) <= a(0) + a(1); Found 0 definitions for operator "+"

 
 
matchstick86 matchstick86 is offline
Junior Member
Join Date: Oct 2009
Posts: 19
 
      10-07-2009
I declared the library as such:
Code:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
and I want to perform the following operation

Code:
...
port (c : inout std_logic_vector (5 down to 0);
...
signal a : std_logic_vector (7 downto 0);
...
c(0) <= (a(0) + a(1)); c(1) <= (a(2)+a(3)); c(2) <= (a(4) + a(5)); c(3) <= (a(6) + a(7));
...
I was trying to check behavioural syntax (for simulation) and the error I got was "Found 0 definitions for operator "+"". I've read from other sites that ieee.numeric.std cannot coexist with either ieee.std.logic.arith or ieee.std.logic.unsigned, so that should narrow the problem down a lot more. If I'm not wrong, both c and a are unsigned, so technically they should up.

Unless I am misintepreting std_logic_vector as easily producing different values of c and a. Any help/tips?
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Module not found in script that was found incommand-line interpreter. Possible Path issue? Trent Mick Python 0 04-03-2008 05:54 PM
One File Found, the other Not Found ?!?!?! mcampo84@gmail.com Java 3 08-07-2006 09:49 PM
Re: Found.0001.CHK to Found.014.CHK folders pcbutts1 Computer Support 2 07-24-2005 01:13 PM
Re: Found.0001.CHK to Found.014.CHK folders pcbutts1 Computer Support 0 07-24-2005 12:08 PM
Namespace not found in aspx but IS found in code behind William Parker ASP .Net 1 06-27-2004 06:13 AM



Advertisments