-
Notifications
You must be signed in to change notification settings - Fork 19
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
Renaming AXI4 folder breaks static paths used by test cases #21
Comments
OsvvmLibraries is commonly distributed as an entire library - with submodules under the OsvvmLibraries subdirectory. This helps you avoid conflicts with other IP you have in your library since all OSVVM IP is in a separate subdirectory. If you kept it organized this way, you should not have any problems running the test cases. What the OSVVM AxiStream is doing is self-checking the current transcript with a previously run transcript. This means the "previously run and checked transcript" needs to be stored somewhere and the only place for it is within the AXI4 directory structure. Unfortunately without VHDL-2019, there is no way to automatically find the files, so they are in a static path. So currently if you really want the OSVVM IP organized in a different directory structure than OsvvmLibraries and you want to run the OSVVM test cases (really only needed if you are making changes to the VC), you are going to have to hand edit paths. With VHDL-2019, we could use FILE_PATH: constant OSVVM_VALIDATED_RESULTS_DIR : string := FILE_PATH & "/../ValidatedResults/" ; Since you are probably using a VHDL-2019 simulator, you could check this out if you like and report back on how well it works. We could then update the scripts to compile the VHDL-2019 version when a tool supports VHDL-2019 and otherwise compile the version with static paths. I know Aldec has implemented features like this, I am not sure if GHDL and NVC have yet. I know Siemens has implemented a small amount of VHDL-2019, but I am not sure if this is one of them. A side note about using '-' in a name, |
Description
My project has multiple submodules inside the
lib
folder which are structured as shown below:To avoid name collisions I renamed the
AXI4
folder toOSVVM-AXI4
(and adjusted the.pro
accordingly). This caused all tests to fail.Exemplary for this testcase:
Root cause
Inside
AxiStream/TestCases/OsvvmTestCommonPgk.vhd
the path to the validated results is defined generically as follows:Previously this constant was defined relatively:
Can this path constant be created without depending on the folder name?
Workaround
For now I just changed the path manually (and removed the extra "/"):
/cc @Paebbels
The text was updated successfully, but these errors were encountered: