We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86abb25 commit 286092bCopy full SHA for 286092b
migen/fhdl/structure.py
@@ -24,6 +24,9 @@ class Value(HUID):
24
Values created from integers have the minimum bit width to necessary to
25
represent the integer.
26
"""
27
+ def __bool__(self):
28
+ raise NotImplementedError("For boolean operations between expressions: use '&'/'|' instead of 'and'/'or'")
29
+
30
def __invert__(self):
31
return _Operator("~", [self])
32
def __neg__(self):
0 commit comments