From: Sebastien Bourdeauducq Date: Wed, 28 Nov 2012 21:44:14 +0000 (+0100) Subject: examples/sim/dataflow: update to new APIs X-Git-Tag: 24jan2021_ls180~2099^2~741 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a3ef28041d43582ebc1737a83337e4b2f694758;p=litex.git examples/sim/dataflow: update to new APIs --- diff --git a/examples/sim/dataflow.py b/examples/sim/dataflow.py index 42863f92..66021ceb 100644 --- a/examples/sim/dataflow.py +++ b/examples/sim/dataflow.py @@ -23,7 +23,7 @@ def main(): g.add_connection(source, sink) comp = CompositeActor(g) def end_simulation(s): - s.interrupt = source.actor.done + s.interrupt = source.actor.token_exchanger.done fragment = comp.get_fragment() + Fragment(sim=[end_simulation]) sim = Simulator(fragment, Runner()) sim.run()