From: Sebastien Bourdeauducq Date: Mon, 16 Jan 2012 18:38:39 +0000 (+0100) Subject: examples/corelogic_conv: use two dividers X-Git-Tag: 24jan2021_ls180~2099^2~1071 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a1043d11c0ae1f038acb31b873073d5a73a21dc3;p=litex.git examples/corelogic_conv: use two dividers --- diff --git a/examples/corelogic_conv.py b/examples/corelogic_conv.py index 4bf058ff..dd9c986b 100644 --- a/examples/corelogic_conv.py +++ b/examples/corelogic_conv.py @@ -1,8 +1,10 @@ from migen.fhdl import verilog -from migen.corelogic import roundrobin, divider +from migen.corelogic import divider -r = roundrobin.Inst(5) -d = divider.Inst(16) -frag = r.get_fragment() + d.get_fragment() -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}) +d1 = divider.Inst(16) +d2 = divider.Inst(16) +frag = d1.get_fragment() + d2.get_fragment() +o = verilog.convert(frag, { + d1.ready_o, d1.quotient_o, d1.remainder_o, d1.start_i, d1.dividend_i, d1.divisor_i, + d2.ready_o, d2.quotient_o, d2.remainder_o, d2.start_i, d2.dividend_i, d2.divisor_i}) print(o)