Technical data

Using the VHDL FLI with foreign subprograms
ModelSim EE/PLUS Reference Manual VHDL Foreign Language Interface and Verilog PLI
-
459
You will also need to write a subprogram body for the subprogram, but it will
never be called.
Example
procedure in_params(
vhdl_integer : IN integer;
vhdl_enum : IN severity_level;
vhdl_real : IN real;
vhdl_array : IN string) is
begin
report "ERROR: foreign subprogram in_params not called";
end;
Matching VHDL parameters with C parameters
Use the tables below to match the C parameters in your foreign C subprogram to
the VHDL parameters in your VHDL package declaration.The parameters must
match in order as well as type.
Parameters of class CONSTANT or VARIABLE class SIGNAL
VHDL T
y
pe IN INOUT/OUT IN
Integer int int * signalID
Enumeration int char * signalID
Real double * double * signalID
Time time64 * time64 * signalID
Array varID varID varID
File -- Not supported --
Record -- Not supported --
Access Integer int int * -- Not supported --
Access Enumeration int int * -- Not supported --
Access Real double * double * -- Not supported --
Access Array varID varID -- Not supported --
Access File -- Not supported --