fhdl/tools: clock domain merging for clock renaming
This commit is contained in:
parent
b016a60b85
commit
faa8b7c49a
|
@ -224,6 +224,9 @@ def rename_clock_domain_expr(f, old, new):
|
||||||
|
|
||||||
def rename_clock_domain(f, old, new):
|
def rename_clock_domain(f, old, new):
|
||||||
rename_clock_domain_expr(f, old, new)
|
rename_clock_domain_expr(f, old, new)
|
||||||
|
if new in f.sync:
|
||||||
|
f.sync[new].extend(f.sync[old])
|
||||||
|
else:
|
||||||
f.sync[new] = f.sync[old]
|
f.sync[new] = f.sync[old]
|
||||||
del f.sync[old]
|
del f.sync[old]
|
||||||
for special in f.specials:
|
for special in f.specials:
|
||||||
|
|
Loading…
Reference in New Issue