Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
d0d2df3c
Commit
d0d2df3c
authored
11 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Download
Email Patches
Plain Diff
fhdl/autofragment: remove legacy functions
parent
72fb6fd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
migen/fhdl/autofragment.py
migen/fhdl/autofragment.py
+0
-19
No files found.
migen/fhdl/autofragment.py
View file @
d0d2df3c
import
inspect
from
migen.fhdl.structure
import
*
from
migen.fhdl.structure
import
*
from
migen.fhdl.specials
import
Special
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
:
class
_FModuleProxy
:
def
__init__
(
self
,
fm
):
def
__init__
(
self
,
fm
):
object
.
__setattr__
(
self
,
"_fm"
,
fm
)
object
.
__setattr__
(
self
,
"_fm"
,
fm
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment