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

makefile: add support for built-in ghdl-yosys-plugin #2514

Merged
merged 1 commit into from
Dec 29, 2020

Conversation

umarcor
Copy link
Contributor

@umarcor umarcor commented Dec 28, 2020

ghdl-yosys-plugin provides an open source VHDL frontend based on GHDL, which allows Yosys to handle VHDL 1987, 1993, 2000 or 2008. There are two options for building ghdl-yosys-plugin:

On Windows, Yosys does not support loading plugins as external shared libraries, they need to be built-in. Therefore, using the second (not recommended) approach is required. It involves patching Yosys' Makefile: yosys.diff. That patch is harmless and having it upstreamed here can make building easier for less experienced users. After merging this PR, the build procedure would be:

  git clone https://github.com/YosysHQ/yosys
  git clone https://github.com/ghdl/ghdl-yosys-plugin

  cd yosys
  mv ../ghdl-yosys-plugin/src frontends/ghdl
  
  make config-*
  
  echo "ENABLE_GHDL=1" >> Makefile.conf
  # Optionally, set the prefix:
  # echo "GHDL_DIR=${MINGW_PREFIX}" >> Makefile.conf

  make

/cc @tgingold

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Co-authored-by: Tristan Gingold <tgingold@free.fr>
Co-authored-by: whitequark <whitequark@whitequark.org>
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

Successfully merging this pull request may close these issues.

2 participants