-
Notifications
You must be signed in to change notification settings - Fork 267
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 4.1.0 breaks VHDL 2008 library settings for GHDL #594
Comments
Can you add prints to ghdl_interface.py printing every time a vhdl standard is added to the |
Thanks a lot, you're absolutly right. I'm using a selfmade VUnit helper library which adds some VHDL libs using drever_lib = vunit.add_library(VHDL_LIBRARY_NAME)
drever_lib.add_source_files(VHDL_SRC_DIR, vhdl_standard="2008") Removing the vhdl_stabdard parameter fixes the workflow. So the question is: What is the right syntax to specifiy the VHDL standard? It seems that the default parameter is |
On public api a plain string should work. The VHDLStandard type is private implemention detail. Are you using any private methods? Maybe you have found a bug? |
Ok, some further tests. When using the drever_lib = vunit.add_library(VHDL_LIBRARY_NAME, vhdl_standard="2008")
drever_lib.add_source_files(VHDL_SRC_DIR) it is also working. Can it be that the Edit: No, I'm not using any private methods, but I will recheck. |
I think you have found a bug. We have a test gap here it seems. The Public API argument is not converted to the private data type. |
Which reminds me I miss a static type system in Python. We should really start to use mypy. |
Yes, the old discussion between static and dynamic typing. But I totally agree with you. 😉 |
Using mypy I could prove that the bug exists and fix it. |
It is fixed on master now. |
Thanks a lot! |
@ttobsen, shall we close this issue? Or do you want to test it first? |
I can test it. Gimme a few minutes and I'll provide some feedback. |
Alright, with the 4.2.0 release my example fails and upgrading to the latest master works as expected! Thanks a lot for the fast response and fix, this issue is solved. 😄 |
Since upgrading to VUnit 4.1.0, I've got problems using with GHDL.
For example, I add in my run.py
I get the following error when running run.py
It seems that the default VHDL standard label isn't working anymore.
The text was updated successfully, but these errors were encountered: