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

GHDL Support for cocotb simulation flow #411

Open
psi-chuffine opened this issue Jan 18, 2024 · 2 comments
Open

GHDL Support for cocotb simulation flow #411

psi-chuffine opened this issue Jan 18, 2024 · 2 comments

Comments

@psi-chuffine
Copy link

I use GHDL with cocotb and am working to move to fusesoc.
It looks like the cocotb flow currently only supports Icarus and modelsim.

Based on the cocotb docs it doesn't look too difficult to extend:
https://docs.cocotb.org/en/stable/custom_flows.html#ghdl

maybe something like

"ghdl": (
                    "run_options",
                    ["--vpi", "`cocotb-config --lib-name-path vpi ghdl`"],
                ),

Patched in

def configure_tools(self, flow):

I haven't dug deep enough into the code to know what else may need to be modified.

@psi-chuffine
Copy link
Author

This does not seem to be as simple as I had hoped, the ghdl.py in /tools/ is very broken. I'm working on that at the moment.

@olofk
Copy link
Owner

olofk commented Jan 21, 2024

Sorry about that. I remember having some headaches trying to get the ghdl backend working. Since I'm not a regular ghdl user myself, it's harder to see if I have done some weird things there. Fixes are highly appreciated.

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

2 participants