litex/examples/corelogic_conv.py

9 lines
302 B
Python
Raw Normal View History

2011-12-08 15:25:05 -05:00
from migen.fhdl import verilog
from migen.corelogic import roundrobin, divider
r = roundrobin.Inst(5)
d = divider.Inst(16)
2011-12-16 10:02:55 -05:00
frag = r.get_fragment() + d.get_fragment()
2012-01-05 13:27:33 -05:00
o = verilog.convert(frag, {r.request, r.grant, d.ready_o, d.quotient_o, d.remainder_o, d.start_i, d.dividend_i, d.divisor_i})
2011-12-16 10:02:55 -05:00
print(o)