fhdl/tools/_TargetLister: do not include array keys in targets
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 11 May 2013 15:28:41 +0000 (17:28 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sat, 11 May 2013 15:28:41 +0000 (17:28 +0200)
migen/fhdl/tools.py

index 333bfe472d5b4818ab4f31961154a8b24a5e31a3..fa5e65b36bfdf2c12b7aff769c5d4b50246003f3 100644 (file)
@@ -37,6 +37,10 @@ class _TargetLister(NodeVisitor):
                self.target_context = True
                self.visit(node.l)
                self.target_context = False
+
+       def visit_ArrayProxy(self, node):
+               for choice in node.choices:
+                       self.visit(choice)
        
 def list_signals(node):
        lister = _SignalLister()