Hello list, first, a big THANKS to the GHDL developers. I'm very pleased how well and fast GHDL works compared to commercial tools.
I've needed to test some more complex simulation with C routines (instead of generating static test vectors), so I had been playing around with some extensions to my GHDL simulation (where Yann Guidons examples at http://ygdes.com/GHDL/ turned out to be quite useful). Basically, this extension allows to feed a running simulation asynchronously with external data through a FIFO in/out queue between simulation and a separate external thread. Optionally, the code below also allows to run a TCP-server (via the netpp library) such that properties (pins, etc.) can be set remotely using a virtual driver, so the same C code can be used for hardware and simulation (just access another 'device', or socket). Here's the basic framework (for now, Linux only): http://section5.ch/downloads/ghdlex-0.0eval.tgz I was unable to find detailed information about interfacing to C and was too 'distracted' to read through the entire VHPI standard spec. So maybe this solution is not too clean, I recall reading something about certain constructs being non portable. Feedback appreciated. Greetings, - Martin _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
