Re: [myhdl-list] Reusability and encapsulation
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2015-05-06 17:50:43
|
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 |