Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

constant: equality

  • Loading branch information...
commit b6763c28ea20faacb77d7c3649f564b58b7738ad 1 parent 7b395b5
Sébastien Bourdeauducq sbourdeauducq authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  migen/fhdl/structure.py
3  migen/fhdl/structure.py
View
@@ -121,6 +121,9 @@ def __init__(self, n, bv=None):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.