From 2f522bdd9f3ff825b51b9accf67cf76f449742b8 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 15 Mar 2013 19:50:24 +0100 Subject: [PATCH] genlib/cdc/MultiReg: implement rename_clock_domain + get_clock_domains --- migen/genlib/cdc.py | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- 2.30.2