Re: [Ghdl-discuss] Status of the VPI / VHPI interfaces implementation

2017-04-25 Thread Hipólito Guzmán
Thanks Martin and yg!

These are very, very interesting examples. It seems GHDL's VHPI is really
powerful, so congratulations Tristan!

yg, your code seems to work with ghdl 0.34dev (I haven't tried the parallel
port example, and have to further tinker with the framebuffer example: I
think I am having permission problems accessing /dev/fb0). Thanks for the
clean code with comments :)

Kind regards,

Hipólito

On Mon, Apr 24, 2017 at 1:17 PM,  wrote:

> Le 2017-04-24 12:32, Martin Strubel a écrit :
>
>> Hi,
>>
>>
>>> What is the status of the VPI / VHPI / interfacing to other languages
>>> implementation on GHDL?
>>>
>>>
>> For me, the VHPI i/f turned out to be very robust and way more
>> powerful than what Modelsim has to offer. You will have to dig through
>> some code though, and you might want to search this list's archive for
>> posts about whygee's example code
>>
>
> http://ygdes.com/GHDL/
> it's a bit outdated and was designed for the older, GCC, 32-bits version
> of GHDL.
> Use with caution and please report all your experiences :-)
>
> or the keyword "ghdlex", the latter
>> being some kind of loosely knitted together linux library functions
>> for virtual interfaces (FIFO/pipe/UART) or busses allowing
>> co-simulation with Python, qemu, et al.
>>
>
> A pretty crazy project, I admit :-)
>
> Greetings,
>>
>> - Martin
>>
> yg
>
>
> ___
> Ghdl-discuss mailing list
> Ghdl-discuss@gna.org
> https://mail.gna.org/listinfo/ghdl-discuss
>
___
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss


Re: [Ghdl-discuss] Status of the VPI / VHPI interfaces implementation

2017-04-24 Thread whygee

Le 2017-04-24 12:32, Martin Strubel a écrit :

Hi,



What is the status of the VPI / VHPI / interfacing to other languages
implementation on GHDL?



For me, the VHPI i/f turned out to be very robust and way more
powerful than what Modelsim has to offer. You will have to dig through
some code though, and you might want to search this list's archive for
posts about whygee's example code


http://ygdes.com/GHDL/
it's a bit outdated and was designed for the older, GCC, 32-bits version 
of GHDL.

Use with caution and please report all your experiences :-)


or the keyword "ghdlex", the latter
being some kind of loosely knitted together linux library functions
for virtual interfaces (FIFO/pipe/UART) or busses allowing
co-simulation with Python, qemu, et al.


A pretty crazy project, I admit :-)


Greetings,

- Martin

yg

___
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss


Re: [Ghdl-discuss] Status of the VPI / VHPI interfaces implementation

2017-04-24 Thread Martin Strubel

Hi,



What is the status of the VPI / VHPI / interfacing to other languages
implementation on GHDL?



For me, the VHPI i/f turned out to be very robust and way more powerful 
than what Modelsim has to offer. You will have to dig through some code 
though, and you might want to search this list's archive for posts about 
whygee's example code or the keyword "ghdlex", the latter being some 
kind of loosely knitted together linux library functions for virtual 
interfaces (FIFO/pipe/UART) or busses allowing co-simulation with 
Python, qemu, et al.


Greetings,

- Martin



___
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss


Re: [Ghdl-discuss] Status of the VPI / VHPI interfaces implementation

2017-04-23 Thread Hipólito Guzmán
 Thank you very much! That works perfectly

On Sun, Apr 23, 2017 at 9:54 PM, Richter, Arne 
wrote:

>
> ghdl -e -v -Wl,.o -Wl,.o ...  -Wl,.o
> 
>
>
> --
> *Von:* Ghdl-discuss [ghdl-discuss-boun...@gna.org]" im Auftrag von
> "Hipólito Guzmán [hguz...@us.es]
> *Gesendet:* Sonntag, 23. April 2017 15:23
> *An:* ghdl-discuss@gna.org
> *Betreff:* [Ghdl-discuss] Status of the VPI / VHPI interfaces
> implementation
>
> Hi everybody,
>
> I want to communicate a VHDL simulator with some external code for a
> research project and I would like to use GHDL.
>
> What is the status of the VPI / VHPI / interfacing to other languages
> implementation on GHDL?
>
> I have been able to compile and run the external sin() example here:
> http://ghdl.readthedocs.io/en/latest/GHDL_implementation_of_
> VHDL.html#interfacing-to-other-languages , but I'm having trouble getting
> a simple custom .c/.o file linked with GHDL. ¿Do I need to create a library
> with my custom functions, or is there a way to link against a specific
> object code file during the elaboration phase?
>
> I am using GHDL 0.34dev with GCC back-end code generator.
>
> Kind regards,
>
> Hipólito
>
> ___
> Ghdl-discuss mailing list
> Ghdl-discuss@gna.org
> https://mail.gna.org/listinfo/ghdl-discuss
>
>
___
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss


Re: [Ghdl-discuss] Status of the VPI / VHPI interfaces implementation

2017-04-23 Thread Richter, Arne

ghdl -e -v -Wl,.o -Wl,.o ...  -Wl,.o 




Von: Ghdl-discuss [ghdl-discuss-boun...@gna.org]" im Auftrag von "Hipólito 
Guzmán [hguz...@us.es]
Gesendet: Sonntag, 23. April 2017 15:23
An: ghdl-discuss@gna.org
Betreff: [Ghdl-discuss] Status of the VPI / VHPI interfaces implementation

Hi everybody,

I want to communicate a VHDL simulator with some external code for a research 
project and I would like to use GHDL.

What is the status of the VPI / VHPI / interfacing to other languages 
implementation on GHDL?

I have been able to compile and run the external sin() example here: 
http://ghdl.readthedocs.io/en/latest/GHDL_implementation_of_VHDL.html#interfacing-to-other-languages
 , but I'm having trouble getting a simple custom .c/.o file linked with GHDL. 
¿Do I need to create a library with my custom functions, or is there a way to 
link against a specific object code file during the elaboration phase?

I am using GHDL 0.34dev with GCC back-end code generator.

Kind regards,

Hipólito
___
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss