Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fhdl/tools: clock domain merging for clock renaming

  • Loading branch information...
commit faa8b7c49a0affebf476ec9c57387203e2906ec7 1 parent b016a60
David Carne davidcarne authored sbourdeauducq committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 migen/fhdl/tools.py
5 migen/fhdl/tools.py
View
@@ -224,7 +224,10 @@ def rename_clock_domain_expr(f, old, new):
def rename_clock_domain(f, old, new):
rename_clock_domain_expr(f, old, new)
- f.sync[new] = f.sync[old]
+ if new in f.sync:
+ f.sync[new].extend(f.sync[old])
+ else:
+ f.sync[new] = f.sync[old]
del f.sync[old]
for special in f.specials:
special.rename_clock_domain(old, new)
Please sign in to comment.
Something went wrong with that request. Please try again.