I did something like that. I mean its by far not a library, but maybe a
starting point for you.
My "real life" system was something like that:
ADC <--> FPGA <--> DSP

For my testbench I the wrote an entity which implements the ADC interface,
but reads its data from a file. To write output data something similar
could be done on the other side. I just included it in my "normal"
synthesizable entities and surrounded it with pragmas that take it out for
the actual (non-simulation) pragmas.

Here is the interesting part of my code:
https://gist.github.com/StefanD986/4ce18416d3e1617a2b3bcc62d164618e

I can say it worked quite good for me and the performance was much better
than using the wave output of ghdl.
Since on Linux/Unix inter process communication can be achieved relatively
easily with "special files" like pipes etc, it shouldn't be to hard to
feed-in input or forward outputs over UDP/TCP, serial ports etc, e.g. with
mkfifo and netcat or so.

2016-06-03 10:52 GMT+02:00 Vít Fábera <fab...@fd.cvut.cz>:

> Hello,
>
> we would like to use GHDL as simulator as real simulator.
> it means simulate FSMs with real input and set real outputs.
>
> We would like to create library with commands like writeline,
> which would send data for example to serial port, to network
> via UDP/TCP packet and, naturaly, with function like read.
>
> Does anybody create such library or similar extension of GHDL?
>
>
> Thean you for answer
>
>
> Vit Fabera
> Faculty of Transportation Sciences
> Czech Technical University
>
> _______________________________________________
> 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

Reply via email to