@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):
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)