fhdl/specials: fix rename_clock_domain declarations
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 15 Mar 2013 18:47:01 +0000 (19:47 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 15 Mar 2013 18:47:01 +0000 (19:47 +0100)
migen/fhdl/specials.py

index ad78a488a6ba4df2e7bb00bd0e231866ed185ca7..5c9bac173445ff0c21b0407c5f82b8d6aa12a53b 100644 (file)
@@ -4,7 +4,7 @@ from migen.fhdl.tracer import get_obj_var_name
 from migen.fhdl.verilog import _printexpr as verilog_printexpr
 
 class Special(HUID):
-       def rename_clock_domain(self):
+       def rename_clock_domain(self, old, new):
                pass
 
        def get_clock_domains(self):
@@ -94,7 +94,7 @@ class Instance(Special):
                        if isinstance(item, Instance._IO) and item.name == name:
                                return item.expr
 
-       def rename_clock_domain(self):
+       def rename_clock_domain(self, old, new):
                for cr in filter(lambda x: isinstance(x, Instance._CR), self.items):
                        if cr.domain == old:
                                cr.domain = new
@@ -214,7 +214,7 @@ class Memory(Special):
                self.ports.append(mp)
                return mp
 
-       def rename_clock_domain(self):
+       def rename_clock_domain(self, old, new):
                for port in self.ports:
                        if port.clock_domain == old:
                                port.clock_domain = new