mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl/tools/value_bits_sign: support not
This commit is contained in:
parent
b6fe3ace05
commit
e95d2f4779
1 changed files with 2 additions and 0 deletions
|
@ -152,6 +152,8 @@ def value_bits_sign(v):
|
|||
elif v.op == "<" or v.op == "<=" or v.op == "==" or v.op == "!=" \
|
||||
or v.op == ">" or v.op == ">=":
|
||||
return 1, False
|
||||
elif v.op == "~":
|
||||
return obs[0]
|
||||
else:
|
||||
raise TypeError
|
||||
elif isinstance(v, _Slice):
|
||||
|
|
Loading…
Reference in a new issue