Re: [myhdl-list] Simulation control
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2015-04-06 12:24:25
|
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 |