Skip to content
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

tb_path returns path to preprocessed directory #402

Closed
felixn opened this issue Oct 18, 2018 · 2 comments
Closed

tb_path returns path to preprocessed directory #402

felixn opened this issue Oct 18, 2018 · 2 comments

Comments

@felixn
Copy link
Contributor

felixn commented Oct 18, 2018

I'm using tb_path(runner_cfg) in a testbench to get the path of the current testbench, and to read stimuli files from that folder.

If I turn on check/location preprocessing with ui.enable_check_preprocessing() / ui.enable_location_preprocessing(), tb_path returns a path inside vunit_out/preprocessed/.

This doesn't work, because this directory doesn't contain the stimuli files.
Is there a way to get the original path containing the testbench that works regardless whether preprocessing is turned on or not?

@kraigher
Copy link
Collaborator

You can always create your own path to the test data in Python and set another generic which will work regardless of preprocessing. Anyway we could fix such that the tb_path generic works regardless of preprocessing as well.

@kraigher
Copy link
Collaborator

I pushed a commit to master which makes tb_path work in combination with preprocessing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants