Re: [myhdl-list] Reusability and encapsulation
Brought to you by:
jandecaluwe
From: Juan P. C. <jp...@gm...> - 2015-05-06 17:16:01
|
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) RESULT: <class 'myhdl._SuspendSimulation'>: Simulated 1000000000.0 timesteps def tb(): # Different from previous tb() ... return ... model_inst = traceSignals(tb) sim = Simulation(model_inst) sim.run(3 * us) RESULT: --------------------------------------------------------------------------- TraceSignalsError Traceback (most recent call last) <ipython-input-22-710800f935f0> in <module>() 1 print "{:10} {:10} {:10}".format("Ref", "FB", "Err=Ref-FB") ----> 2 model_inst = traceSignals(tb) 3 sim = Simulation(model_inst) 4 sim.run(3 * us) /usr/local/lib/python2.7/dist-packages/myhdl-0.9.dev0-py2.7.egg/myhdl/_traceSignals.pyc in __call__(self, dut, *args, **kwargs) 73 raise TraceSignalsError(_error.ArgType, "got %s" % type(dut)) 74 if _simulator._tracing: ---> 75 raise TraceSignalsError(_error.MultipleTraces) 76 77 _tracing = 1 TraceSignalsError: Cannot trace multiple instances simultaneously It's probably something silly I'm doing. I suspect Simulation()._finalize() is not being called for some reason. Thanks, JP On Wed, May 6, 2015 at 12:43 PM, Christopher Felton <chr...@gm...> wrote: > <snip> > > > > You can install the latest via: > > >> pip install https://github.com/jandecaluwe/myhdl/archive/master.zip > > or > > >> pip install git+https://github.com/jandecaluwe/myhdl > > > > Actually, if you want to follow the development > and get the greatest and latest it is best to > git clone and update as outlined here: > > http://dev.myhdl.org/guide/guide.html > > If you want to contribute you need to create a > github fork, etc. etc. > > 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 > |