From cbc387f69e4fc96a79f1a8d502c27f95753befe5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 20 Jun 2012 22:39:52 +0200 Subject: [PATCH] actorlib/sim/SimActor: remove dead time between transactions --- migen/actorlib/sim.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/migen/actorlib/sim.py b/migen/actorlib/sim.py index b79019150..76e126e1d 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()