mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
constant: equality
This commit is contained in:
parent
7b395b565e
commit
b6763c28ea
1 changed files with 3 additions and 0 deletions
|
@ -121,6 +121,9 @@ class Constant(Value):
|
|||
|
||||
def __repr__(self):
|
||||
return str(self.bv) + str(self.n)
|
||||
|
||||
def __eq__(self, other):
|
||||
return self.bv == other.bv and self.n == other.n
|
||||
|
||||
def _cst(x):
|
||||
if isinstance(x, int):
|
||||
|
|
Loading…
Reference in a new issue