-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow nets & variables to be elaborated early on demand.
If a net or variable is referenced in another net or variable declaration or in a value parameter definition (e.g. when using the $bits function) and hasn't already been elaborated, we need to elaborate it early. So during the scope elaboration phase, add placeholders in each NetScope object to record the PWire objects that are yet to be elaborated. This allows the symbol_search() function to find the unelaborated objects and to trigger early elaboration. Add a flag in the PWire object to indicate when we are elaborating it. This allows us to detect circular references and avoid an infinite loop. This fixes issue #483, issue #575, and issue #1097.
- Loading branch information
1 parent
ff4cd2c
commit ca30705
Showing
6 changed files
with
99 additions
and
2 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
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