fhdl: fix instance get_io
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 28 Sep 2012 16:02:03 +0000 (18:02 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 28 Sep 2012 16:02:03 +0000 (18:02 +0200)
migen/fhdl/structure.py

index d6eb990a5e0b9e87f2055a24e1408e44fb59c67d..fa97b793d4ef428e55dfaff2671a220eadd527d2 100644 (file)
@@ -286,7 +286,7 @@ class Instance:
        def get_io(self, name):
                for item in self.items:
                        if isinstance(item, Instance._IO) and item.name == name:
-                               return item.signal
+                               return item.expr
        
        def __hash__(self):
                return id(self)