Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top