mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
migen/fhdl/tools: fix rename_clock_domain when new == old
Clock domain renaming should support new == old to allow programmatically determined clock domain renaming.
This commit is contained in:
parent
493f424ebd
commit
1f1ff5a5e9
1 changed files with 7 additions and 6 deletions
|
@ -256,6 +256,7 @@ def rename_clock_domain_expr(f, old, new):
|
|||
|
||||
def rename_clock_domain(f, old, new):
|
||||
rename_clock_domain_expr(f, old, new)
|
||||
if new != old:
|
||||
if old in f.sync:
|
||||
if new in f.sync:
|
||||
f.sync[new].extend(f.sync[old])
|
||||
|
|
Loading…
Reference in a new issue