projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d274a0
)
hdl.ast: fix off-by-1 in Initial.__init__().
author
whitequark
<whitequark@whitequark.org>
Wed, 19 Feb 2020 01:28:14 +0000
(
01:28
+0000)
committer
whitequark
<whitequark@whitequark.org>
Wed, 19 Feb 2020 01:28:14 +0000
(
01:28
+0000)
nmigen/hdl/ast.py
patch
|
blob
|
history
diff --git
a/nmigen/hdl/ast.py
b/nmigen/hdl/ast.py
index 7c0d74bf0bfefe58d2c681770c20ca167776ce03..af1d8319c7735f8118194f23f147418fe40c43c2 100644
(file)
--- 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)