Help me fix a VHDL syntax error

Status
Not open for further replies.

mo.khairy.mo

Member level 2
Joined
Dec 17, 2008
Messages
47
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
Egypt
Activity points
1,548
hi all
when i write this VHDL code
Code:
if ((a = 0) | (b = 0)) then
					
       c    <= (others=>'0');

end if;

i found this error
Code:
Syntax error near "|"

could anyone help me to fix this error

thanks in advance
 

VHDL syntax error

"|" isn't a defined standard VHDL operator. Did you mean "OR"?
 

VHDL syntax error

yeah i mean if either a=0 or b=0 and i don't want to check the result of a or b
 

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…