forked from amaranth-lang/amaranth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hdl.rec: don't save casted shapes in Layout constructor
Don't save the result of Shape.cast in the Layout constructor. This allows the original user-provided shape to be preserved, while still checking its validity. This fixes Enum decoder inference for Signals (amaranth-lang#393).
- Loading branch information
1 parent
26a15b3
commit 7243fe2
Showing
3 changed files
with
53 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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