Re: [myhdl-list] Suspending/Resuming/Stopping a simulation
Brought to you by:
jandecaluwe
From: bedros <be...@ya...> - 2004-07-12 20:42:17
|
I use StopSimulation exception frequently if there's an invalid condition in my simulation such as reading from an empty FIFO. eg: if ready_sig and FIFO.empty: raise StopSimulation, "ERROR: reading from empty fifo" I couldn't find anything about SuspendSimulation, not even in MyHDL 0.4 documents. Where did you find it? -Bedros --- Frank Palazzolo <pal...@co...> wrote: > > Hello, > > I'm interested in suspending a simulation after a > certain event, and then > resuming again, or possibly stopping. The > Simulation.run() call works for a > fixed number of cycles. Is there a way that I can > use exceptions to do > this? I noticed that myhdl uses SuspendSimulation > and StopSimulation > internally to do this. > > This might be a nice feature in general. One could > write a testbed which > changes based on the simulation results. :) > > Thanks, > Frank > > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & > Training. > Attend Black Hat Briefings & Training, Las Vegas > July 24-29 - > digital self defense, top technical experts, no > vendor pitches, > unmatched networking opportunities. Visit > www.blackhat.com > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > |