error on VHDL program....

Status
Not open for further replies.

energy_baz

Junior Member level 1
Joined
Nov 24, 2010
Messages
18
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,413
hi,

could anyone help me to fix this error...the error state : Found 0 definitions for operator "+"...thanks
 
Last edited:

wire1 is a std_logic. wire1(n downto n) is a 1 bit unsigned value. "+" is not defined for unsigned+std_logic, but for unsigned+unsigned (and unsigned+integer).
 

so, I have to convert wire1 into unsigned/integer is it..?
 

try using wire1(n downto n) for a 1 bit unsigned array, and it should work.
 
thanks...it's work now...
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…