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

Add ghdl and ghdl-yosys-plugin #171

Open
shenki opened this issue Feb 11, 2022 · 13 comments
Open

Add ghdl and ghdl-yosys-plugin #171

shenki opened this issue Feb 11, 2022 · 13 comments

Comments

@shenki
Copy link

shenki commented Feb 11, 2022

In order to use VHDL with the yosys flows, we need ghdl and the ghdl yosys plugin to be part of the environment.

https://github.com/ghdl/ghdl-yosys-plugin

https://github.com/ghdl/ghdl.git

@kgugala
Copy link

kgugala commented Feb 11, 2022

@umarcor can you take a look at this?

@umarcor
Copy link
Member

umarcor commented Feb 18, 2022

The main challenge is the availability of an Ada compiler in the Conda ecosystem. GHDL is written in Ada, so that's required in order to build the ghdl binary or the libghdl shared library. The ghdl-yosys-plugin is written in C, so an Ada compiler is not required. However, it depends on libghdl and on the assets of a GHDL installation.

@umarcor
Copy link
Member

umarcor commented May 12, 2022

@proppy @PiotrZierhoffer would you know how to customize a compiler to enable Ada support in GCC?

/cc @mithro

@proppy
Copy link
Contributor

proppy commented May 12, 2022

@umarcor wouldn't conda-forge/staged-recipes#14692 also help?

@umarcor
Copy link
Member

umarcor commented May 12, 2022

@proppy, I believe that the main purpose is to support it on Linux, because all the tools are expected to be available, while some might be missing on Windows or macOS.

MSYS2 packages on Windows are known to work (one of my main workstation is a Windows 10 with MSYS2).

@proppy
Copy link
Contributor

proppy commented May 12, 2022

@umarcor ah yes, what I meant was that having the ada compiler available in conda-forge could enable us to build a recipe for this.

@nobodywasishere
Copy link

nobodywasishere commented Jan 7, 2023

Are these of any use?
https://github.com/alire-project/GNAT-FSF-builds/releases/tag/gnat-12.2.0-1
It should(?) be possible to create conda packages for at least the linux/mac x86 ones.

@nobodywasishere
Copy link

Also found a gcc ada compiler that runs on M1 macs
https://github.com/simonjwright/distributing-gcc/releases/tag/gcc-12.2.0-aarch64

@proppy
Copy link
Contributor

proppy commented Mar 22, 2023

It seems that there is https://github.com/hdl/conda-eda/tree/master/syn/ghdlsynth in the repo but it doesn't seems to be currently included in the CI https://github.com/hdl/conda-eda/search?q=ghdlsynth (and therefore not published).

@PiotrZierhoffer @umarcor do you know if that's related to this effort?

@proppy
Copy link
Contributor

proppy commented Mar 22, 2023

/cc @xobs

@umarcor
Copy link
Member

umarcor commented Mar 23, 2023

@proppy see https://github.com/hdl/conda-eda/commits/master/syn/ghdlsynth. I guess it never worked because there was never an Ada compiler available. So, the recipe/metadata are good enough, but a build time dependency is missing in the environment.

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

No branches or pull requests

6 participants