mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
genlib/cdc/MultiReg: implement rename_clock_domain + get_clock_domains
This commit is contained in:
parent
e2d156ef64
commit
2f522bdd9f
1 changed files with 7 additions and 0 deletions
|
@ -30,6 +30,13 @@ class MultiReg(Special):
|
||||||
self.odomain = odomain
|
self.odomain = odomain
|
||||||
self.n = n
|
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):
|
def list_ios(self, ins, outs, inouts):
|
||||||
r = set()
|
r = set()
|
||||||
if ins:
|
if ins:
|
||||||
|
|
Loading…
Reference in a new issue