10.06.2016 Views

eldo_user

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

.SAVE END in Combination with .RESTART<br />

Setting Up An Analysis<br />

Saving and Restarting Transient Simulations<br />

It is possible to run a transient simulation and save the final state of the run. Thereafter, it is<br />

possible to restart the transient simulation from the time the last simulation was ended. To<br />

achieve this, use the .SAVE command in combination with the END parameter.<br />

To restart the simulation, the circuit description file must be modified. The original .SAVE<br />

command must be removed and the .TRAN command must be modified to reflect the new end<br />

time. Furthermore, a .RESTART command must be included in the circuit description file:<br />

.RESTART <br />

Using the above procedure, the simulation will produce a new binary output file (.wdb file) that<br />

contains data starting from the end of the last simulation. To concatenate old and new .wdb files,<br />

the old .wdb file should be renamed to, for example, tmpfile and the previous .RESTART<br />

command modified as follows:<br />

.RESTART FILE=<br />

The system then concatenates the old .wdb file data with the new .wdb data.<br />

More Sophisticated .SAVE and .RESTART Procedures<br />

The complete .SAVE syntax shown in the line below includes provision to save the simulation<br />

state either periodically or at predefined times and/or temperature or sweep (STEP) parameter<br />

conditions:<br />

.SAVE [fname] {DC|END|TIME=value} [REPEAT] [TEMP=value] [STEP=value]<br />

It is possible to save the result of the simulation periodically (with REPEAT), to save the run for<br />

a particular temperature (with TEMP) or for a particular swept parameter (with STEP).<br />

In each case, the rule to restart the simulation from a predefined state is the same; to restart the<br />

simulation, the .RESTART command needs to be added to the circuit description file. The<br />

.SAVE commands contained therein should be removed.<br />

The transient simulation parameters in the .TRAN command may also need to be modified to<br />

reflect the new desired simulation time stop.<br />

Save and Restart Example<br />

1. Run a simulation on the netlist file restart.cir containing the following command to save<br />

simulation information at 400ns to file test.sav:<br />

.SAVE test.sav time=400ns<br />

2. Rename the generated simulation results file restart.wdb as test_previous.wdb.<br />

3. Relaunch Eldo with the following command in the netlist:<br />

Eldo® User's Manual, 15.3 221

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!