Re: [myhdl-list] Simulation control
Brought to you by:
jandecaluwe
From: Juan P. C. <jp...@gm...> - 2015-04-07 14:56:37
|
Hi Christopher, The link on "mixed mode" simulation is a proof of concept, but very naive. I've put together a blog post discussing the difficulties that one might find: http://caram.cl/developing-a-mixed-signal-simulator The link about interactive simulation is more along the lines of what would be required, but using the function calls, not the interactive console. I see it's using a debugger and that might make it extremely slow. It would be ideal if this functionality was built into the simulator. If I were to implement this functionality into the simulator, any idea on where I should start? I haven't seen any documentation about the operation of the simulator. Thanks, JP On Mon, Apr 6, 2015 at 8:24 AM, Christopher Felton <chr...@gm...> wrote: > On 4/5/15 3:06 PM, Juan Pablo Caram wrote: > > I apologize for the confusion. I'm hoping to do do this with code, not a > > debugger. I'm trying to create a mixed signal simulator exchanging data > > between ngspice and myhdl. > > This might be of interest: > http://old.myhdl.org/doku.php/projects:mixedmodesimulation > http://old.myhdl.org/doku.php/projects:interactive_simulation_using_ipython > > > > > I would like to be able to simulate until signal X toggles or changes, > > get the time, run spice until this time is reached, update signals in > > myhdl and spice, resume myhdl simulation, etc. > > Why can't you do this with the existing Python debuggers? > > > > > Sometimes the clock comes from spice, I detect the change in output from > > a comparator, stop the simulation, and must toggle the corresponding > > signal in the digital side and resume the digital. > > > > I couldn't find any fine controls for the simulation in MyHDL. SimPy, > > that looks quite similar in terms of using generators, seem to have > > "simulate until" kind of controls. I wonder if this is already possible > > or if someone had tried to implement such functionality. > > This control does not exist in the MyHDL simulator. > Currently, you can only instruct the simulator to > run N simulation steps: `Simulation(test()).run(1000)` > > Regards, > Chris > > > > > > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live > exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- > event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > |