projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db4529a
)
back.pysim: simplify. NFC.
author
whitequark
<whitequark@whitequark.org>
Tue, 7 Jul 2020 04:19:05 +0000
(
04:19
+0000)
committer
whitequark
<whitequark@whitequark.org>
Tue, 7 Jul 2020 04:19:05 +0000
(
04:19
+0000)
nmigen/back/pysim.py
patch
|
blob
|
history
diff --git
a/nmigen/back/pysim.py
b/nmigen/back/pysim.py
index 83a8fb002869acc83ff55e2ef7886d0cab27837f..7c426c3ef24aa23818cdcacb2801511204fe2639 100644
(file)
--- a/
nmigen/back/pysim.py
+++ b/
nmigen/back/pysim.py
@@
-203,9
+203,7
@@
class _SignalState:
if self.curr == self.next:
return False
self.curr = self.next
- return True
- def wakeup(self):
awoken_any = False
for process, trigger in self.waiters.items():
if trigger is None or trigger == self.curr:
@@
-254,8
+252,7
@@
class _SimulatorState:
converged = True
for signal_state in self.pending:
if signal_state.commit():
- if signal_state.wakeup():
- converged = False
+ converged = False
self.pending.clear()
return converged