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

vunit work library issue #497

Closed
jezbaker110 opened this issue May 21, 2019 · 8 comments
Closed

vunit work library issue #497

jezbaker110 opened this issue May 21, 2019 · 8 comments

Comments

@jezbaker110
Copy link

I have an issue where I have tried to list all my project files in the python script. However the code has some IP files which reference packages in a work library. I cannot change the IP code. Vunit is saying it cannot find these files. Vunit will not let me compile these files into a work library, so I am not sure how to get around this issue. It not allowing the design to be compiled. I have checked the modelsim.ini file and no reference has been made to the work library.

@eine
Copy link
Collaborator

eine commented May 21, 2019

The work library is a special name in VHDL which means 'the same library where this element is defined'. If you compile a module A to library 'lib' and it uses work.B, then module B must also be compiled to library 'lib'.

https://insights.sigasi.com/tech/work-not-vhdl-library.html

@kraigher
Copy link
Collaborator

The question was answered by @1138-4eb

@jezbaker110
Copy link
Author

I have tried compiling these pkg files into another library but then when vunit compiles the code, it throws up an error because it cannot find these files in the work library being referenced.

@eine
Copy link
Collaborator

eine commented May 26, 2019

Almost all the examples instantiate components from work. You can have a look at them as a reference. Apart from that, it is really hard to guess a solution, if you don't help us by providing some detailed info about your use case. Can you provide a MWE? Or, at least, the run.py that you are using and the error message you get?

@jezbaker110
Copy link
Author

jezbaker110 commented May 26, 2019 via email

@eine
Copy link
Collaborator

eine commented May 26, 2019

That sounds as a problem with the compilation order. Since you are compiling all the sources to the same library, all the components must be found unless i) it was not compiled before or ii) some error was produced while it was being compiled. Please, check the log to ensure that the offending module has not been compiled. If so, rewrite the run.py to add sources explicitly in an order which you know that will work. If this solves your issue, please open a new PR about why the order is not properly picked for you design.

@jezbaker110
Copy link
Author

jezbaker110 commented May 26, 2019 via email

@LarsAsplund
Copy link
Collaborator

@jezbaker110 We need to see some logs and code to support you on this.

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

4 participants