Re: [myhdl-list] Reusability and encapsulation
Brought to you by:
jandecaluwe
From: Juan P. C. <jp...@gm...> - 2015-05-06 17:58:32
|
Oh, sorry, I didn't actually run your notebook. I just didn't (and still don't) see the difference between my code and yours. I'm not explicitly using _SuspendSimulation or StopSimulation. I don't know why the simulation "stops" with _SuspendSimulation instead of StopSimulation. It's stopping at the end of the specified time in sim.run(stoptime). Okay, now I see it. At the completion of simulation time _SuspendSimulation is raised to exit (this is the bug?). You explicitly use StopSimulation. Thanks, JP On Wed, May 6, 2015 at 1:50 PM, Christopher Felton <chr...@gm...> wrote: > On 5/6/2015 12:15 PM, Juan Pablo Caram wrote: > > Ok, installed from git. Version is 0.9.dev0. And the problem persists. > Here > > is some more detail: > > > > def tb(): > > ... > > return ... > > > > model_inst = traceSignals(tb) > > sim = Simulation(model_inst) > > sim.run(1 * us) > > > > This is a known problem with a known solution, the > difference between _SuspendSimulation and StopSimulation. > > There will probably be a fix shortly'sh. > > There was a little confusion in this thread, because I > thought you said you observed this issue in the example > I mentioned: > > http://nbviewer.ipython.org/github/cfelton/musicbox_simple/blob/master/musicbox.ipynb > > >>> if you try to run the line: > >>> > >>> Simulation(traceSignals(_test)).run() > >>> > >>> a second time without restarting the kernel. > > This problem (the second), could not be reproduced with the > example I provided as described in a previous reply. > > Regards, > Chris > > > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > |