Re: [myhdl-list] Setting "sig.next" before starting the simulation
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2003-10-06 19:03:13
|
Jan Decaluwe wrote: [Correction] > > Coming back to the original issue. The implementation is perhaps > overly restrictive by always clearing the signals-to-be-updated list > in a Simulation construction. What I want to avoid is that pending > events from a suspended simulation interfere with a new one. But this > can also be done as follows: > > - a Simulation construction does not clear the list, but bails out > with an error when it is not empty ... AND there is a still another non-stopped Simulation object around. (Otherwise there would be no gain.) > - a Simulation that stops "naturally" should not have any pending > events, so the list should be empty (check with an assertion); > - a suspended simulation can have pending events because it can be > resumed. Add a stop() method to the Simulation class that clears > the list and makes the Simulation unrunnable. Thus: suspended > simulations need to be stopped explicitly before a new Simulation > can be constructed. > > What do you think? > -- Jan Decaluwe - Resources bvba - http://jandecaluwe.com Losbergenlaan 16, B-3010 Leuven, Belgium Bored with EDA the way it is? Check this: http://jandecaluwe.com/Tools/MyHDL/Overview.html |