hdl.ast: fix off-by-1 in Initial.__init__().
authorwhitequark <whitequark@whitequark.org>
Wed, 19 Feb 2020 01:28:14 +0000 (01:28 +0000)
committerwhitequark <whitequark@whitequark.org>
Wed, 19 Feb 2020 01:28:14 +0000 (01:28 +0000)
nmigen/hdl/ast.py

index 7c0d74bf0bfefe58d2c681770c20ca167776ce03..af1d8319c7735f8118194f23f147418fe40c43c2 100644 (file)
@@ -1207,7 +1207,7 @@ class Initial(Value):
     An ``Initial`` signal is ``1`` at the first cycle of model checking, and ``0`` at any other.
     """
     def __init__(self, *, src_loc_at=0):
-        super().__init__(src_loc_at=1 + src_loc_at)
+        super().__init__(src_loc_at=src_loc_at)
 
     def shape(self):
         return Shape(1)