decorators: fix stacklevel, export in std
authorRobert Jordens <jordens@gmail.com>
Sun, 5 Apr 2015 09:49:06 +0000 (03:49 -0600)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Sun, 5 Apr 2015 10:47:45 +0000 (18:47 +0800)
migen/fhdl/decorators.py
migen/fhdl/std.py

index 62cda094e9b86148efc6f349db1152ba56072dca..ddd1a9655e0c01be88d902f3a2ec6e899db30bb4 100644 (file)
@@ -48,11 +48,11 @@ class ModuleTransformer:
 
        @classmethod
        def adhoc(cls, i, *args, **kwargs):
-               warnings.warn("deprecated, use the plain transformer", DeprecationWarning)
+               warnings.warn("deprecated, use the plain transformer", DeprecationWarning, 2)
                return cls(*args, **kwargs)(i)
 
 def DecorateModule(transformer, *args, **kwargs):
-       warnings.warn("deprecated, use the plain transformer", DeprecationWarning)
+       warnings.warn("deprecated, use the plain transformer", DeprecationWarning, 2)
        return transformer.__self__(*args, **kwargs)
 
 class ControlInserter(ModuleTransformer):
index 56bd97bcd15383c4ff9a8d9e806e296f3242ac6c..a9ac658dd041729da01ca9e684748e74298504fe 100644 (file)
@@ -3,3 +3,5 @@ from migen.fhdl.module import Module, FinalizeError
 from migen.fhdl.specials import TSTriple, Instance, Memory
 from migen.fhdl.bitcontainer import log2_int, bits_for, flen, fiter, fslice, freversed
 from migen.fhdl.decorators import DecorateModule, InsertCE, InsertReset, RenameClockDomains
+from migen.fhdl.decorators import (CEInserter, ResetInserter,
+       ClockDomainsRenamer, ModuleTransformer)