From: David Carne Date: Tue, 16 Jul 2013 16:17:21 +0000 (+0200) Subject: fhdl/tools: clock domain merging for clock renaming X-Git-Tag: 24jan2021_ls180~2099^2~523 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=faa8b7c49a0affebf476ec9c57387203e2906ec7;p=litex.git fhdl/tools: clock domain merging for clock renaming --- diff --git a/migen/fhdl/tools.py b/migen/fhdl/tools.py index 7e934c90..44733366 100644 --- a/migen/fhdl/tools.py +++ b/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)