Mar 6, 2011 #1 E 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: Mar 7, 2011
hi, could anyone help me to fix this error...the error state : Found 0 definitions for operator "+"...thanks
Mar 7, 2011 #2 P permute Advanced Member level 3 Joined Jul 16, 2010 Messages 918 Helped 295 Reputation 590 Reaction score 266 Trophy points 1,343 Activity points 8,543 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).
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).
Mar 7, 2011 #3 E 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 so, I have to convert wire1 into unsigned/integer is it..?
Mar 7, 2011 #4 T TrickyDicky Advanced Member level 7 Joined Jun 7, 2010 Messages 7,110 Helped 2,081 Reputation 4,181 Reaction score 2,048 Trophy points 1,393 Activity points 39,769 try using wire1(n downto n) for a 1 bit unsigned array, and it should work.
Mar 7, 2011 #5 E 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 thanks...it's work now...