back.pysim: simplify. NFC.
authorwhitequark <whitequark@whitequark.org>
Tue, 7 Jul 2020 01:59:25 +0000 (01:59 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 14:46:55 +0000 (14:46 +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: