mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
12 lines
232 B
Python
12 lines
232 B
Python
from .structure import *
|
|
import inspect
|
|
|
|
def FromLocal():
|
|
f = Fragment()
|
|
frame = inspect.currentframe().f_back
|
|
ns = frame.f_locals
|
|
for x in ns:
|
|
obj = ns[x]
|
|
if hasattr(obj, "GetFragment"):
|
|
f += obj.GetFragment()
|
|
return f
|