From: Sebastien Bourdeauducq Date: Fri, 15 Mar 2013 18:50:24 +0000 (+0100) Subject: genlib/cdc/MultiReg: implement rename_clock_domain + get_clock_domains X-Git-Tag: 24jan2021_ls180~2099^2~639 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f522bdd9f3ff825b51b9accf67cf76f449742b8;p=litex.git genlib/cdc/MultiReg: implement rename_clock_domain + get_clock_domains --- diff --git a/migen/genlib/cdc.py b/migen/genlib/cdc.py index 632b337e..eac3341b 100644 --- a/migen/genlib/cdc.py +++ b/migen/genlib/cdc.py @@ -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: