From: Sebastien Bourdeauducq Date: Wed, 28 Nov 2012 21:16:02 +0000 (+0100) Subject: examples/basic: remove unroll example X-Git-Tag: 24jan2021_ls180~2099^2~743 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c4b5931bccd331c7a6e62d726737afd3569a591;p=litex.git examples/basic: remove unroll example --- diff --git a/examples/basic/multi_accumulator.py b/examples/basic/multi_accumulator.py deleted file mode 100644 index 7f3cf800..00000000 --- a/examples/basic/multi_accumulator.py +++ /dev/null @@ -1,23 +0,0 @@ -from migen.fhdl.structure import * -from migen.transform.unroll import unroll_sync -from migen.fhdl import verilog - -x = Signal(BV(4)) -y = Signal(BV(4)) -acc = Signal(BV(4), variable=True) -z = Signal() - -sync = [ - If(acc == 2, acc.eq(3)), - acc.eq(acc + x + y), - z.eq(acc == 0) -] - -n = 5 -xs = [Signal(BV(4)) for i in range(n)] -ys = [Signal(BV(4)) for i in range(n)] -accs = [Signal(BV(4)) for i in range(n)] -zs = [Signal() for i in range(n)] - -sync_u = unroll_sync(sync, {x: xs, y: ys, acc: accs, z: zs}) -print(verilog.convert(Fragment(sync=sync_u), ios=set(xs+ys+zs)))