Le 2015-08-27 07:48, René Doß a écrit :
Hallo,
I would use the interface to C language. Now I have used two procedure.
The call of procedure works.
First I can use only variables in the vhdl side. Why I can not use
signal?
I suppose it's because signals are more than a value,
there are also parameters like "last value", "time & delta of last
change" etc.
so it would look more like a record/struct.
The values comes not correct to the C function. What is wrong?
I am not sure, i looked at your provided code and i'm curious why you
chose this :
procedure house (reg : out integer) is
why "out" ?
Anyway, sending a value and returning it is /almost/ like you did,
from my tired memory. I think there was an example in the GHDL doc,
right ?
Futhermore I have explored this a bit and gathered my experiments at
http://ygdes.com/GHDL/
Good luck !
YG
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss