Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Add ghdl, ghdl-yosys-plugin #4

Closed
edbordin opened this issue May 2, 2020 · 5 comments · Fixed by #16
Closed

Add ghdl, ghdl-yosys-plugin #4

edbordin opened this issue May 2, 2020 · 5 comments · Fixed by #16

Comments

@edbordin
Copy link
Collaborator

edbordin commented May 2, 2020

No description provided.

@daveshah1
Copy link

By following "Build as part of yosys (not recommended)" here: https://github.com/ghdl/ghdl-yosys-plugin I think we can get it to work on Windows, and as a fully static blob (the Yosys dynamic plugin interface doesn't support Windows yet).

@edbordin
Copy link
Collaborator Author

After some patching I've managed to build it into yosys. GHDL_PREFIX needs to be set on linux and darwin for it to work: export GHDL_PREFIX=$install_dir/lib/ghdl

The Ada equivalent of argv[0] is returning an empty string when ghdl is statically linked into yosys. For some reason it is working as intended on windows.

@edbordin edbordin linked a pull request May 18, 2020 that will close this issue
@mariohoff
Copy link

mariohoff commented Jun 29, 2020

Hey, if I try to run yosys -m ghdl .... I get the following error:

ERROR: This version of yosys is built without plugin support.

In my .zshrc I have

export PATH="$PATH:$HOME/ulx3s_workspace/fpga-toolchain/bin"
export GHDL_PREFIX="$HOME/ulx3s_workspace/fpga-toolchain/lib/ghdl"

Any help to fix this or do I have to compile yosys myself?

Thanks

Edit:
I always used yosys -m ghdl before that. Just setup my pc new and wanted to try this cool thing here to save myself some time!

Also I am using this version from today: fpga-toolchain-linux_x86_64-nightly-20200629.tar.gz

@edbordin
Copy link
Collaborator Author

edbordin commented Jun 29, 2020

Hi @qwqw330, as I understand it -m ghdl tells yosys to load a dynamic plugin for ghdl. Because we have compiled it into yosys you can simply remove that from the args (i.e. just run yosys ....) and it should hopefully work. Let me know how it goes though because you are probably one of the first testing this build on an actual design!

@mariohoff
Copy link

Oh that is very cool. Thank you, it works! Finally no more hourlong compiling. Yes! Thanks for your work.

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

Successfully merging a pull request may close this issue.

3 participants