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

Modelsim: Handle cSource/cppSource and header files with modelsim #226

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tarikgraba
Copy link

Source files can be compiled by passing them to vlog.
Header files search path is also passed using the -I option.

TODO: All incdirs (RTL and DPI) are passed to vlog which could be too
much. This is done because DPI support in Fusesoc is not yet finalized.
See olofk/fusesoc#311

Source files can be compiled by passing them to `vlog`.
Header files search path is also passed using the `-I` option.

TODO: All incdirs (RTL and DPI) are passed to `vlog` which could be too
much. This is done because DPI support in Fusesoc is not yet finalized.
See olofk/fusesoc#311
@GCHQDeveloper560
Copy link
Contributor

I recently experimented with DPI in ModelSim, so this would be nice to have! Thanks!

The build logs have expired to see exactly why the tests checks failed, but I suspect the ModelSim test is failing because you didn't update tests/test_modelsim/edalize_build_rtl.tcl to match the modified vlog command.

You can run the tests locally from your edalize directory with pytest or tox using PYTHONPATH=. pytest or just tox and if they pass there you should be alright on GitHub unless there are Python version or platform issues.

@olofk
Copy link
Owner

olofk commented Feb 23, 2023

I had no idea you could do this. Does this generally work good enough? Would be great to have some second opinion

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.

3 participants