FabienM
FabienM

Reputation: 3751

What the difference between != and =/= in chisel?

The Chisel cheat-sheet give two way do express inequality :

Chisel   Explanation   Width
==============================
x != y   Inequality    1
x =/= y  Inequality    1

Are != and =/= equivalent ?

Upvotes: 2

Views: 310

Answers (1)

Jack Koenig
Jack Koenig

Reputation: 6064

They are equivalent, but != is deprecated in favor of =/=.

I'll see about removing != from the cheatsheet.

Upvotes: 3

Related Questions