Skip to content

Commit

Permalink
vhdl202x: point C header refs to ghdl/ghdl-cosim instead of umarcor/g…
Browse files Browse the repository at this point in the history
…hdl-cosim
  • Loading branch information
umarcor committed May 17, 2022
1 parent b55d3a3 commit 2b60877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vhdl202x-lcs-dpi/03-vffi.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ typedef struct vhpiValueS {

However, this would be a breaking change (as it would effectively deprecate `vhpi*VecVal` types) that the comittee might not want to introduce. Instead, the current proposal is to add a `vffi_user.h` file in the standard, which complements `vhpi_user.h`. All common types can be reused, and fat pointers for unconstrained, accesses to an unconstrained arrays, etc. would be defined in the new header file; along with helper function for accessing the most common multi-dimensional arrays.

There is a demo in ghdl-cosim's fork of U. Martinez-Corral which showcases how `vfii_user.h` would look like, and how helper functions can be used in different use cases. See [umarcor/ghdl-cosim@develop: `vhpidirect/vffi_user.h`](https://github.com/umarcor/ghdl-cosim/blob/develop/vhpidirect/vffi_user.h). Nevertheless, note that the demo is based on the current implementation of VHPIDIRECT in GHDL. It is expected to change after the outcome of this proposal. Instead of exposing the internal representation of fat pointers, an intermediate abstraction layer will be used in GHDL for complying with the standard.
There is a demo in ghdl-cosim, which showcases how `vfii_user.h` would look like, and how helper functions can be used in different use cases. See [ghdl/ghdl-cosim: `vhpidirect`](https://github.com/ghdl/ghdl-cosim/blob/master/vhpidirect). Nevertheless, note that the demo is based on the current implementation of VHPIDIRECT in GHDL. It is expected to change after the outcome of this proposal. Instead of exposing the internal representation of fat pointers, an intermediate abstraction layer will be used in GHDL for complying with the standard.

## A summary

Expand Down

0 comments on commit 2b60877

Please sign in to comment.