Node naming, including hierarchical history in Yosys+Odin-II #2086
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.
Signed-off-by: Seyed Alireza Damghani [email protected]
Description
As Yosys generates a coarse-grained BLIF file for Odin-II partial mapper, all BLIF components were interpreted as black boxes at the beginning of Odin-II partial mapping. Therefore, node names were generated based on the type of each subcircuit, which was a unique name and did not include hierarchical information about modules/submodules. This PR extracts the hierarchical information related to each node from the name of its output signals and then sets the node(and its nets) name(s) based on the operation type of each node and the hierarchical information.
P.S: the similar approach is taken in Odin-II, which makes the readability of netlists better and eases the tracking of the critical path in the final VTR timing analysis.
Related Issue
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: