mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl/structure: add unary minus
This commit is contained in:
parent
d8e478efee
commit
55d143a454
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,8 @@ class HUID:
|
|||
class Value(HUID):
|
||||
def __invert__(self):
|
||||
return _Operator("~", [self])
|
||||
def __neg__(self):
|
||||
return _Operator("-", [self])
|
||||
|
||||
def __add__(self, other):
|
||||
return _Operator("+", [self, other])
|
||||
|
|
Loading…
Reference in a new issue