forked from M-Labs/artiq
1
0
Fork 0

compiler.iodelay: add forgotten Conv.__eq__.

This commit is contained in:
whitequark 2015-11-17 00:51:22 +03:00
parent fd46690cf5
commit 629aacec09
1 changed files with 5 additions and 0 deletions

View File

@ -85,6 +85,11 @@ class Conv(Expr):
assert isinstance(ref_period, float)
self.operand, self.ref_period = operand, ref_period
def __eq__(lhs, rhs):
return rhs.__class__ == lhs.__class__ and \
lhs.ref_period == rhs.ref_period and \
lhs.operand == rhs.operand
def free_vars(self):
return self.operand.free_vars()