This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
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.
Add a new transform,
SortModules
, that will convert a FIRRTL circuit into def-before-use of modules and external modules.The Scala FIRRTL compiler isn't particularly picky about this, but other downstream tooling may be.
This transform is not used, but is only provided such that a user can either include it if they want this invariant in their code or if they want a quick way to convert a FIRRTL circuit to respect this property, e.g., :
Contributor Checklist
Type of Improvement
API Impact
None. Pure feature addition.
Backend Code Generation Impact
None. The new transform is optional.
Desired Merge Strategy
Release Notes
Add optional SortModules transform to enforce define-before-use of modules/extmodules.
Reviewer Checklist (only modified by reviewer)
Please Merge
?