cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
286 Views
Registered: ‎07-02-2019

Error: found '0' definitions of operator "+", cannot determine exact overloaded matching definition for "+"

Jump to solution

I'm creating a 4 bit counter and I got Error message about,

" Error: found '0' definitions of operator "+", cannot determine exact overloaded matching definition for "+" ".
How to solving this error?

 

Untitled2.jpg

Untitled.jpg

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
233 Views
Registered: ‎07-02-2019

This error was correct when I used "use IEEE.std_logic_signed.all;" Library.

Thank for all. 

View solution in original post

0 Kudos
3 Replies
Highlighted
264 Views
Registered: ‎06-21-2017

Try using IEEE.numeric_std.all and making Q either signed or unsigned.  Math operations on std_logic_vectors should be avoided.

0 Kudos
Highlighted
Scholar
Scholar
261 Views
Registered: ‎08-07-2014

ghd.rohan@gmail.com,

Use type_casting. The + operator will work with unsigned types. Revert back to std_logic_vector later or as needed.

Q <= std_logic_vector(unsigned(Q) + 1);

--------------------------------------------------------------------------------------------------------
FPGA enthusiast!
All PMs will be ignored
--------------------------------------------------------------------------------------------------------
0 Kudos
Highlighted
234 Views
Registered: ‎07-02-2019

This error was correct when I used "use IEEE.std_logic_signed.all;" Library.

Thank for all. 

View solution in original post

0 Kudos