Which of the == or === operator is synthesizable in verilog?

Status
Not open for further replies.

snlaron

Newbie level 4
Joined
Jan 6, 2014
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
28
which of the == or === operator is synthesizable in verilog?
 

Re: verilog operator,which of the == or === operator is synthesizable in verilog?

Both. However you use === when you want to compare with X or Z, and that is not synthesizable.
 
Re: verilog operator,which of the == or === operator is synthesizable in verilog?

Both. However you use === when you want to compare with X or Z, and that is not synthesizable.

Thank you sir. Since X or Z are not snythesizable , === is not snythesizable?
 

Re: verilog operator,which of the == or === operator is synthesizable in verilog?

if (A === 0)

is functionally equivalent to

if (A == 0)

and both are synthesizable. However, some synthesis tools may choose not to support it.
 
Re: verilog operator,which of the == or === operator is synthesizable in verilog?

Thank you again sir.
can you name some synthesis tools that can synthesize === operator?
 

Re: verilog operator,which of the == or === operator is synthesizable in verilog?

if (A === 0)

is functionally equivalent to

if (A == 0)

and both are synthesizable. However, some synthesis tools may choose not to support it.

Thank you again sir.
can you name some synthesis tools that can synthesize === operator?
 

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