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

Schematic Viewer fails (GHDL + Yosys, Windows) #717

Open
gfcwfzkm opened this issue Jan 20, 2025 · 0 comments
Open

Schematic Viewer fails (GHDL + Yosys, Windows) #717

gfcwfzkm opened this issue Jan 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@gfcwfzkm
Copy link

Describe the bug
The schematic viewer fails on windows for VHDL (GHDL + YOSYS):

2025-01-20 11:17:17.731 [info] Executing: C:\Windows\system32\cmd.exe  C:\Windows\system32\cmd.exe /d /s /c " C:\msys64\ucrt64\bin\yosys.exe -m ghdl -p "ghdl --std=08 -fsynopsys  --work=work "c:\Users\WDAGUtilityAccount\.vscode\extensions\teros-technology.teroshdl-6.0.14\resources\project_manager\examples\ghdl\half_adder.vhd"  --work=work -e half_adder; hierarchy -top half_adder; proc; write_json C:\Users\WDAGUtilityAccount\.teroshdl_8RZk0; stat""
2025-01-20 11:17:17.963 [info] ERROR: Can't load module `./ghdl': "C:\msys64\ucrt64\bin\..\share\yosys\plugins\ghdl.so": The specified module could not be found.
2025-01-20 11:17:17.971 [error] Yosys failed.

The bug report also applies when trying to execute the schematic viewer from the hierarchy.

To Reproduce
GHDL and Yosys (as well as GNU Make and GTKWave) were installed using MSYS2 UCRT64 with the following command:

pacman -S make mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-ghdl-llvm mingw-w64-ucrt-x86_64-gtkwave mingw-w64-ucrt-x86_64-yosys

The binary paths to Yosys and GHDL are both set to C:\msys64\ucrt64\bin and performing the "Verify Setup" task successfully detects them.

Is this a good way to install GHDL + Yosys on Windows? If not, what would be better? I'm using MSYS2 to benefit from an simple update system via pacman but if there is a more reliable way to use GHDL+Yosys with TerosHDL, I'm open for it.

Code
The error can be reproduced with the GHDL example included by TerosHDL.

Please complete the following information:

  • OS: Windows 11 Enterprise and Windows 11 Pro
  • VSCode version: 1.96.4
  • TerosHDL version: 6.0.14

Additional context
If I perform the command in CMD manually, but remove -m ghdl from the command, it seems that everything performs as expected and a JSON file is written.

C:\Windows\system32\cmd.exe /d /s /c " C:\msys64\ucrt64\bin\yosys.exe -p "ghdl --std=08 -fsynopsys  --work=work "c:\Users\WDAGUtilityAccount\.vscode\extensions\teros-technology.teroshdl-6.0.14\resources\project_manager\examples\ghdl\half_adder.vhd"  --work=work -e half_adder; hierarchy -top half_adder; proc; write_json C:\Users\WDAGUtilityAccount\.teroshdl_8RZk0; stat""

It seems that the MSYS2 versions of Yosys and GHDL don't ship GHDL as shared library (there is no \share\yosys folder either), yet executing ghdl within Yosys performs just fine.

@gfcwfzkm gfcwfzkm added the bug Something isn't working label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant