genlib/cdc/MultiReg: implement rename_clock_domain + get_clock_domains
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 15 Mar 2013 18:50:24 +0000 (19:50 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 15 Mar 2013 18:50:24 +0000 (19:50 +0100)
migen/genlib/cdc.py

index 632b337eb194913a2abe0ad4a053cd177c05abdf..eac3341b79ffb2f3ceb148faad3e71a0efb566dc 100644 (file)
@@ -30,6 +30,13 @@ class MultiReg(Special):
                self.odomain = odomain
                self.n = n
 
+       def rename_clock_domain(self, old, new):
+               if self.odomain == old:
+                       self.odomain = new
+
+       def get_clock_domains(self):
+               return {self.odomain}
+
        def list_ios(self, ins, outs, inouts):
                r = set()
                if ins: