Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fhdl/tools: clock domain merging for clock renaming

  • Loading branch information...
commit faa8b7c49a0affebf476ec9c57387203e2906ec7 1 parent b016a60
David Carne authored July 16, 2013 sbourdeauducq committed July 16, 2013

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  migen/fhdl/tools.py
5  migen/fhdl/tools.py
@@ -224,7 +224,10 @@ def rename_clock_domain_expr(f, old, new):
224 224
 
225 225
 def rename_clock_domain(f, old, new):
226 226
 	rename_clock_domain_expr(f, old, new)
227  
-	f.sync[new] = f.sync[old]
  227
+	if new in f.sync:
  228
+		f.sync[new].extend(f.sync[old])
  229
+	else:
  230
+		f.sync[new] = f.sync[old]
228 231
 	del f.sync[old]
229 232
 	for special in f.specials:
230 233
 		special.rename_clock_domain(old, new)

0 notes on commit faa8b7c

Please sign in to comment.
Something went wrong with that request. Please try again.