Apr 13, 2014 #1 S saur Member level 2 Joined Feb 23, 2012 Messages 45 Helped 2 Reputation 4 Reaction score 2 Trophy points 1,288 Activity points 1,621 I've two vectors and I want to perform logical and on them: eg Code: ........... mod_ins : IN STD_LOGIC_VECTOR(7 downto 0); ........ signal mod_ena_sig : STD_LOGIC_VECTOR(7 downto 0); ............ if(mod_ins = mod_ins and mod_ena_sig) then ...... It seems to say there is some error in the if statement. Can't figure out what the error is. Awaiting all the suggestions. Thanks Saur
I've two vectors and I want to perform logical and on them: eg Code: ........... mod_ins : IN STD_LOGIC_VECTOR(7 downto 0); ........ signal mod_ena_sig : STD_LOGIC_VECTOR(7 downto 0); ............ if(mod_ins = mod_ins and mod_ena_sig) then ...... It seems to say there is some error in the if statement. Can't figure out what the error is. Awaiting all the suggestions. Thanks Saur
Apr 13, 2014 #2 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,513 Helped 14,758 Reputation 29,798 Reaction score 14,128 Trophy points 1,393 Location Bochum, Germany Activity points 298,482 Instead of unnecessary brackets around the if expression, you'll want it around (mod_ins and mod_ena_sig) to clarify the operator precedence. I presume you would find the answer yourself by reading the error message thoroughly. It's a bit more specific than saying "some error".
Instead of unnecessary brackets around the if expression, you'll want it around (mod_ins and mod_ena_sig) to clarify the operator precedence. I presume you would find the answer yourself by reading the error message thoroughly. It's a bit more specific than saying "some error".