can I can include 2 statement inside if condition in Verilog

Status
Not open for further replies.

Irfansw07

Member level 1
Joined
Dec 8, 2008
Messages
35
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,511
VerilogA in Analog

Can anyone help me out in giving answer if I can include 2 statement inside if condition in VerilogA....

I mean to say when I write like this
if ( a = 0 and b = 0) begin

then Above statement is incorrect in VerilogA and showing error
Can some one please tell me how to write in correct form

Thanks in advance
 

VerilogA in Analog

maybe if ( a == 0 and b == 0)
or
if (( a == 0) && (b == 0))
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…