Or: foo != 4'd15 && foo != 4'd0 Or even: foo !== 4'd15 && foo !== 4'd0
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
foo[3:1] != foo[2:0]
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
This feels like a readability/clarity vs handholding-a-dumb-optimizer choice...
-
FWIW with Yosys I get the exact same circuit in either case.
- Show replies
New conversation -
-
-
~(&foo | |foo)
-
Uh, ~|foo Specifically this conveys not all ones and not all zeroes without implying width
- Show replies
New conversation -
-
-
foo != '1 && foo != '0 Not all ones and not all zeroes.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.