decorators: fix ControlInserter
authorRobert Jordens <jordens@gmail.com>
Sun, 5 Apr 2015 06:20:23 +0000 (00:20 -0600)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Sun, 5 Apr 2015 06:44:03 +0000 (14:44 +0800)
migen/fhdl/decorators.py

index b6e906cd0e665098bb02b25a6a2b58fd2e08f32b..62cda094e9b86148efc6f349db1152ba56072dca 100644 (file)
@@ -81,7 +81,7 @@ class ControlInserter(ModuleTransformer):
                        to_insert = [(getattr(i, self.control_name), cdn)]
                else:
                        to_insert = [(getattr(i, self.control_name + "_" + cdn), cdn)
-                               for cdn in clock_domains]
+                               for cdn in self.clock_domains]
                self.transform_fragment_insert(i, f, to_insert)
 
 class CEInserter(ControlInserter):