fhdl/structure: store clock domain name
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 24 Jan 2013 12:49:49 +0000 (13:49 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 24 Jan 2013 12:49:49 +0000 (13:49 +0100)
migen/fhdl/structure.py

index cf0383b38582f5ac5432135bc571ec643cc37e79..09d056d4dbab3d1e23a6a7fe61af52d751b359ad 100644 (file)
@@ -384,6 +384,7 @@ class Fragment:
 
 class ClockDomain:
        def __init__(self, n1, n2=None):
+               self.name = n1
                if n2 is None:
                        n_clk = n1 + "_clk"
                        n_rst = n1 + "_rst"