From: whitequark Date: Wed, 19 Feb 2020 01:28:14 +0000 (+0000) Subject: hdl.ast: fix off-by-1 in Initial.__init__(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c53a65a77ad118d5b1ba24ad5a7ef4208c952c22;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)