From: Sebastien Bourdeauducq Date: Sat, 9 Mar 2013 22:05:45 +0000 (+0100) Subject: fhdl/autofragment: remove legacy functions X-Git-Tag: 24jan2021_ls180~2099^2~670 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0d2df3c4b4f7e3ed5718d900d7444623379578d;p=litex.git fhdl/autofragment: remove legacy functions --- diff --git a/migen/fhdl/autofragment.py b/migen/fhdl/autofragment.py index 4ff36086..66124763 100644 --- a/migen/fhdl/autofragment.py +++ b/migen/fhdl/autofragment.py @@ -1,25 +1,6 @@ -import inspect - from migen.fhdl.structure import * from migen.fhdl.specials import Special -def from_local(): - f = Fragment() - frame = inspect.currentframe().f_back - ns = frame.f_locals - for x in ns: - obj = ns[x] - if hasattr(obj, "get_fragment"): - f += obj.get_fragment() - return f - -def from_attributes(obj): - f = Fragment() - for x in obj.__dict__.values(): - if hasattr(x, "get_fragment"): - f += x.get_fragment() - return f - class _FModuleProxy: def __init__(self, fm): object.__setattr__(self, "_fm", fm)