From: Sebastien Bourdeauducq Date: Sat, 16 Jun 2012 20:37:25 +0000 (+0200) Subject: examples/flow/arithmetic: cleanup X-Git-Tag: 24jan2021_ls180~2099^2~915 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7cac15b34d7457809a8154dba3013c76bea0edc;p=litex.git examples/flow/arithmetic: cleanup --- diff --git a/examples/dataflow/arithmetic.py b/examples/dataflow/arithmetic.py index 414b06c4..63f97b16 100644 --- a/examples/dataflow/arithmetic.py +++ b/examples/dataflow/arithmetic.py @@ -3,7 +3,6 @@ import sys import matplotlib.pyplot as plt import networkx as nx -from migen.flow.ala import * from migen.flow.network import * from migen.flow.composer import * from migen.actorlib.sim import * @@ -25,7 +24,7 @@ class Dumper(SimActor): while True: t = Token("result") yield t - print("Received: " + str(t.value["r"])) + print(t.value["r"]) super().__init__(dumper_gen(), ("result", Sink, [("r", BV(32))])) @@ -43,7 +42,7 @@ def main(): ps = gen1 + gen2 result = ps*gen1 + ps*gen2 - g.add_connection(result.actor_node, Dumper()) + g.add_connection(result.actor_node, ActorNode(Dumper())) gen1.actor_node.actor.name = "gen1" gen2.actor_node.actor.name = "gen2"