Maybe these informations should be on the GHDL site or in the Wiki of the Sourceforge project. I also tried your examples but I haven't got them all running :( I think it's not so easy, especially for non-SW-engineers like I am. And the examples of Martin are really nice, but they are too sophisticated for me.
What I tried was some kind of cosimulation a SW-implementation of DES algorithm against my VHDL implementation. I will look tomorrow, where I gave up, maybe there is a simple solution for the problem. A article in the wiki would be a good start and would allow discussions which were useful for every user interested in GHDL and it's C-interface. Greetz, Torsten Am 03.11.2014 um 23:37 schrieb [email protected]: > Le 2014-11-03 23:13, Martin Strubel a écrit : >> Hi Rene, > >>> In my last email I ask about the possiblity to make some trigger events >>> to GHDL. I want change vhdl signals from outside. >>> I get only some short information. But no correct way. >>> I had tried this for long time and stopped this. Now some year later I >>> had found no solution and ask. >> Maybe I don't see your problem, but there's code lying around for years >> that should do the job, for example whygee's pioneer work >> (http://ygdes.com/GHDL/). > > :-) > > The trick there is that it's NOT the C side that controls the simulation, > but the VHDL side that sets the thing up. > > For example, the real-time clock actually stops/pauses the simulator > when it has finished all its deltas. > Doing otherwise is much more difficult. > > So your overall events system must work in a "polled" way, > with your C function called everytime GHDL has done its work for the current > cycle. > >> If you want more complex shit with >> autogenerated HW description and virtual devices, google for ghdlex/netpp. >> Some folks are also using simple unix pipes for C <-> Simulation I/O, >> like the classic trick with 'socat' to fake a virtual UART via a PTY. >> Just found something that should come close, see attachment. You can >> hack a tad more solutions with socat that can do networking without >> requiring you to set up your own socket dance. > > This system looks great, where do you host it ? It should go to > the GHDL page of external resources ! > >> Cheers, >> - Strubi > > whygee > > _______________________________________________ > Ghdl-discuss mailing list > [email protected] > https://mail.gna.org/listinfo/ghdl-discuss _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
