Direct Programming Interface (DPI) | Foreign Function Interface (FFI)
This issue is a placeholder for the discussion that is going on in different rooms, about defining a DPI/FFI interface for VHDL, to be included in the next revision of the standard.
- Existing proposal in Twiki: DpiProposal
- Thread in the reflector: grouper.ieee.org/groups/1076/email/msg01286
- Work in progress (headers, tests): gh:VHDL/Compliance-Tests: cosim
- "New" in-progress proposal (HTML, PDF or EPUB): umarcor.github.io/ghdl-cosim/vhdl202x
- If site offline (not found), see PDF file attached to this comment.
From gh:ghdl/ghdl-cosim: vhpidirect:
- VFFI helpers:
- VFFI demo:
- valuesFromVhdlToC: valuesFromVhdlToC.c and [valuesFromVhdlToC.vhd] (https://github.com/ghdl/ghdl-cosim/blob/master/vhpidirect/vffi_user/demo/valuesFromVhdlToC.vhd)
- accessesFromVhdlToC: valuesFromVhdlToC.c and valuesFromVhdlToC.vhd
- See execution example: https://github.com/ghdl/ghdl-cosim/runs/1462297961?check_suite_focus=true#step:6:1087
/cc @tgingold