Re: [myhdl-list] Simulation control
Brought to you by:
jandecaluwe
From: Juan P. C. <jp...@gm...> - 2015-04-05 20:06:41
|
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. 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. 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. Thanks, JP On Sun, Apr 5, 2015 at 2:28 PM, Euripedes Rocha Filho < roc...@gm...> wrote: > I had some debug of simulation(also cosimulation) using pudb without any > problems so far. > > 2015-04-05 3:12 GMT-03:00 Jose M. Gomez Cama <ch...@gm...>: > >> I use eclipse with PyDev or Aptana which is the out-of-the-box version, >> and it works quite well. >> >> Best, >> >> Jose M. >> >> > El 05/04/2015, a las 04:33, Christopher Felton <chr...@gm...> >> escribió: >> > >> >> On 4/4/15 9:08 PM, Christopher Felton wrote: >> >> >>> On 4/4/15 6:39 PM, Juan Pablo Caram wrote: >> >>> Hi, >> >>> >> >>> I was wondering if there was a way to 1) pause a simulation by setting >> >>> breakpoints (toggle on signal X, or similar), 2) changing the state of >> >>> signals manually during pause and 3) resuming? >> >> >> >> You should be able to use any Python debugger >> >> (pdb) to do this. I personally have not tried >> >> it, so I don't know if there are any issues. >> > >> > I just tried PyCharm and it is fairly straightforward >> > to set breakpoints in a simulation, step, inspect, >> > etc. I am sure there are many different Python >> > debug interfaces (command line pdb probably works >> > fine as well). >> > >> > Regards, >> > Chris >> > >> > >> > >> > >> ------------------------------------------------------------------------------ >> > Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> > by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> > things parallel software development, from weekly thought leadership >> blogs to >> > news, videos, case studies, tutorials and more. Take a look and join the >> > conversation now. http://goparallel.sourceforge.net/ >> > _______________________________________________ >> > myhdl-list mailing list >> > myh...@li... >> > https://lists.sourceforge.net/lists/listinfo/myhdl-list >> >> >> ------------------------------------------------------------------------------ >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for all >> things parallel software development, from weekly thought leadership >> blogs to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> _______________________________________________ >> myhdl-list mailing list >> myh...@li... >> https://lists.sourceforge.net/lists/listinfo/myhdl-list >> > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > > |