From: Sebastien Bourdeauducq Date: Wed, 20 Jun 2012 20:39:52 +0000 (+0200) Subject: actorlib/sim/SimActor: remove dead time between transactions X-Git-Tag: 24jan2021_ls180~2099^2~898 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbc387f69e4fc96a79f1a8d502c27f95753befe5;p=litex.git actorlib/sim/SimActor: remove dead time between transactions --- diff --git a/migen/actorlib/sim.py b/migen/actorlib/sim.py index b7901915..76e126e1 100644 --- a/migen/actorlib/sim.py +++ b/migen/actorlib/sim.py @@ -57,13 +57,13 @@ class SimActor(PureSimulable, Actor): or isinstance(transactions, set): self.active = set(transactions) elif transactions is None: - self.active = [] + self.active = set() else: raise TypeError def do_simulation(self, s): if not self.done: + if not self.active: + self._next_transactions() if self.active: self._process_transactions(s) - else: - self._next_transactions()