Compile only required subset#550
Closed
dstadelm wants to merge 7 commits intoVUnit:masterfrom
dstadelm:compile_only_required_subset
Closed
Compile only required subset#550dstadelm wants to merge 7 commits intoVUnit:masterfrom dstadelm:compile_only_required_subset
dstadelm wants to merge 7 commits intoVUnit:masterfrom
dstadelm:compile_only_required_subset
Conversation
added 7 commits
September 23, 2019 16:32
…_order These two functions used a lot of similar code. The code is now split into functions. These will also be used in future for the functionality to compile only the required subset of files.
SourceFile, VerilogSourceFile and VHDLSourceFile now reside in own module source_file
These function takes a list of target source files and returns the minimal list of SourceFiles to compile for the given target source files. One quirk is that at the end of the function the list has to be filtered. This has to do with the get_files_in_compile_order function, which for reasons that are unknown to me introduces unnecessary files.
This feature is used so that one can find the SourceFile of the test bench that belongs to a test case. This will be required for generating the target file list for the subset compile.
The additional argument allows to pass a list of target files. If that argument is used, only the subset of files that is required to fullfill all dependencies of the target files, are compiled.
This commit adds the switch for the minimal subset compilation. Also modifies the def _compile function. The modification filteres gets the filtered testcases and from those retrives the source files. This together generates the target_files list.
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.
This pull request is split into 4 commits.
Each commit could be applied without breaking the initial code.
The commits are organized so that they are building up on one another. This should make it easier to review the pull request. Each commit has additional description which should help to understand the intent of the commit.