mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
24 lines
430 B
Python
24 lines
430 B
Python
import ast
|
|
|
|
from migen.flow.actor import *
|
|
from migen.actorlib.sim import *
|
|
|
|
class Pytholite:
|
|
def get_fragment(self):
|
|
return self.fragment
|
|
|
|
class DFPytholite(Pytholite, Actor):
|
|
pass
|
|
|
|
def make_io_object(dataflow=None):
|
|
if dataflow is None:
|
|
return Pytholite()
|
|
else:
|
|
return DFPytholite(dataflow)
|
|
|
|
|
|
def gen_io(compiler, model, to_model, from_model):
|
|
print(model)
|
|
for arg in to_model:
|
|
print(ast.dump(arg))
|
|
return [], []
|