From: whitequark Date: Wed, 19 Feb 2020 01:28:14 +0000 (+0000) Subject: hdl.ast: fix off-by-1 in Initial.__init__(). X-Git-Tag: working_23jun2020~30 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a14a5723c101dc7036f973c8e82c4a492a57c1e7;p=nmigen.git hdl.ast: fix off-by-1 in Initial.__init__(). --- diff --git a/nmigen/hdl/ast.py b/nmigen/hdl/ast.py index 7c0d74b..af1d831 100644 --- a/nmigen/hdl/ast.py +++ b/nmigen/hdl/ast.py @@ -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)