Repository navigation
docs/guide: Remove obsolete warning about undefined FSM states - #1684
Merged
Merged
Conversation
neuschaefer
commented
Sep 13, 2026
Contributor
>>> m = Module()
>>> with m.FSM():
... with m.State("Init"):
... m.next = "Other"
...
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
with m.FSM():
~~~~~^^
File "/usr/lib/python3.14/contextlib.py", line 148, in __exit__
next(self.gen)
~~~~^^^^^^^^^^
File "/.../amaranth/amaranth/hdl/_dsl.py", line 480, in FSM
raise NameError("FSM state '{}' is referenced but not defined"
.format(state_name))
NameError: FSM state 'Other' is referenced but not defined
>>>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1684 +/- ##
=======================================
Coverage 91.25% 91.25%
=======================================
Files 44 44
Lines 11527 11527
Branches 2245 2245
=======================================
Hits 10519 10519
Misses 846 846
Partials 162 162 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merged
via the queue into
amaranth-lang:main
with commit Sep 18, 2026
90449f1
21 of 23 checks passed
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.