Skip to content

Commit

Permalink
fhdl/tools: clock domain merging for clock renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarne authored and Sebastien Bourdeauducq committed Jul 16, 2013
1 parent b016a60 commit faa8b7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion migen/fhdl/tools.py
Expand Up @@ -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)
Expand Down

0 comments on commit faa8b7c

Please sign in to comment.