Verilog: elaborate starting from top-level module#1629
Open
Verilog: elaborate starting from top-level module#1629
Conversation
ecda797 to
bf2d700
Compare
This strengthens the typing when accessing the assignments in verilog_parameter_overridet.
dc99347 to
d03c0cc
Compare
This changes the type checking for defparam items such that they work without prior type checking of the module for which the parameter is defined.
d03c0cc to
16af856
Compare
This changes the type checking of packages to be done in the order given in the compilation unit. IEEE 1800 2017 26.3 Referencing data in packages: "The compilation of a package shall precede the compilation of scopes in which the package is imported." Hence, there is no need to re-order the elaboration to support use that is out-of-order.
2eb148b to
a251e71
Compare
IEEE 1800-2017 Sec. 23.10.4 suggests an algorithm that defines an order for elaboration; this order starts with the "top-level modules". This commit changes the order of the module elaboration to begin with the top-level module. Modules not instantiated will no longer be elaborated. This enables recursive module definitions.
a251e71 to
7e1b36d
Compare
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.
IEEE 1800-2017 Sec. 23.10.4 suggests an algorithm that defines an order for elaboration; this order starts with the "top-level modules".
This commit changes the order of the module elaboration to begin with the top-level module. Modules not instantiated will no longer be elaborated.