ghdl / ghdl-cosim

Documentation with code examples about interfacing VHDL with foreign languages and tools through GHDL
https://ghdl.github.io/ghdl-cosim
Apache License 2.0
46 stars 9 forks source link

vhpidirect: update 'shared/shghdl' #8

Closed umarcor closed 4 years ago

umarcor commented 4 years ago

Fix #2

As discussed in #2, this PR documents different approaches to generate simulation models as shared libraries, to be dynamically loaded and executed from foreign languages/applications.

@RocketRoss, I guess this will make it easier for new users (as you in ghdl/ghdl#1184) to understand how to generate shared libraries to execute simulations multiple times from foreign languages. Would you mind reviewing this PR?

NOTE: I did not remove -Wl,-Wl,-u,ghdl_main from ghdl -e -shared yet. We can either keep this PR open until GHDL is updated, or we can merge this before and update the example/docs later. The failure of shared/shghdl is expected until the docker image is updated.