From: Sebastien Bourdeauducq Date: Fri, 14 Dec 2012 22:56:03 +0000 (+0100) Subject: actorlib/sim/SimActor: do not drive busy low when generator yields None X-Git-Tag: 24jan2021_ls180~2099^2~715 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f350adf14c7f1b371a9a2930ad5b61fc6472650;p=litex.git actorlib/sim/SimActor: do not drive busy low when generator yields None --- diff --git a/migen/actorlib/sim.py b/migen/actorlib/sim.py index 67f8689e..d99b909d 100644 --- a/migen/actorlib/sim.py +++ b/migen/actorlib/sim.py @@ -60,7 +60,7 @@ class TokenExchanger(PureSimulable): self.active = set() else: raise TypeError - if all(transaction.idle_wait for transaction in self.active): + if self.active and all(transaction.idle_wait for transaction in self.active): self.busy = False def do_simulation(self, s):