Search code examples
scalahdlchisel

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 ?


Solution

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

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