Browse files

fhdl/tools: clock domain merging for clock renaming

  • Loading branch information...
1 parent b016a60 commit faa8b7c49a0affebf476ec9c57387203e2906ec7 @davidcarne davidcarne committed with sbourdeauducq Jul 16, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 migen/fhdl/tools.py
View
5 migen/fhdl/tools.py
@@ -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)

0 comments on commit faa8b7c

Please sign in to comment.