From a14a5723c101dc7036f973c8e82c4a492a57c1e7 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 19 Feb 2020 01:28:14 +0000 Subject: [PATCH] hdl.ast: fix off-by-1 in Initial.__init__(). --- nmigen/hdl/ast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2