-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for running testbenches depending on a set of user-prov… #1095
Conversation
@LukasVik Is this compatible with the similar function in TSFPGA? |
Yes this would simplify it a lot. Good initiative!
Can a testbench file be passed as argument also? Or is it limited to
“source”/“implementation” files?
Does it work when location/check preprocessing is enabled also? From e.g. a
git diff you would have the original file location, not the preprocessed
file location. Will that work as expected?
So if I understand it correctly, one would call this new “run_dependent()”
method and it adds to the test filter. But one would still call “main()”
after to actually execute the tests? If so I think the verbiage is a little
misleading. Perhaps “add_dependents_to_test_filter”?
Thanks!
…On Sun, 26 Jan 2025 at 17:37, Lars Asplund ***@***.***> wrote:
@LukasVik <https://github.com/LukasVik> Is this compatible with the
similar function in TSFPGA?
—
Reply to this email directly, view it on GitHub
<#1095 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACOEO6YS3BS3TOEVTNRQBED2MUFMPAVCNFSM6AAAAABV4TG252VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJUGQ4TONBRGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yes, a testbench can also be passed. The testbench is dependent on itself. Note that there are important changes that VUnit can't detect directly. Let's say you have no changes to your HDL files but there's a stimuli file to Preprocessing works. VUnit keeps track of both the original file name and the preprocessed file name and the user-provided files are compared with the original. Your understanding of |
Sounds great!
Yes makes sense. In the tsfpga class (https://github.com/tsfpga/tsfpga/blob/main/tsfpga/git_simulation_subset.py) we detect changes in the
Great, a lot of the complexity in the tsfpga class is the handling of original vs processed path. Nice to get rid of that.
Cool. I agree with the naming. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks overall good to me, it's a good addtion. Some minor comments.
cd1330e
to
671c7f7
Compare
… set of user-provided source file patterns.
671c7f7
to
7645976
Compare
…ided source files.
The intended use case is to feed VUnit with files that has been changed since some point in time. The changes are typically provided by the version control system.
The API is: