back.pysim: simplify. NFC.
authorwhitequark <whitequark@whitequark.org>
Tue, 7 Jul 2020 01:59:25 +0000 (01:59 +0000)
committerwhitequark <whitequark@whitequark.org>
Tue, 7 Jul 2020 03:38:39 +0000 (03:38 +0000)
nmigen/back/pysim.py

index c27ee00d8b90912bbda9ca2111a4d59b3b0bb5bf..89945eb88bd7e054909cd2c18c3dec5e6a03d20e 100644 (file)
@@ -187,10 +187,7 @@ class _SignalState:
         self.signal = signal
         self.pending = pending
         self.waiters = dict()
-        self.reset()
-
-    def reset(self):
-        self.curr = self.next = self.signal.reset
+        self.curr = self.next = signal.reset
 
     def set(self, value):
         if self.next == value: