Hi!
Is there any possibility to pass a string from ghdl to c? I tried it with:
function writeToBB (v: integer; id: string; value: string) return integer;
attribute foreign of writeToBB : function is "VHPIDIRECT writeToBlackboard";
test := writeToBB(4, "Hallo", "Welt");
and in C:
void writeToBlackboard(int time, char *id, char *value) {
printf("Zeit: %ins, ID: %s, value: %s\n", time, id, value);
}
But the output was:
Zeit: 4ns, ID: , value: 0�
Greetings,
Markus
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss