|
|
Intusoft will release the ICAP/4 8.x.9 update in 2 parts. The first release is now available for download from our web site. Its feature set allows for full functionality using Scope5. The second will be available during the Fourth Quarter of 2001. Later in the fall, we will complete the release with changes mostly to the SpiceNet schematic capture and a major model library update; and as always the latest and greatest for IsSpice4. For power supply design, we are adding a template library that goes with SpiceNet drawing for several canned power supply topologies. This is integrated with Magnetics Designer to give a complete power supply design solution. We will ship CDs and any new documentation in the fall release. Here’s what’s new for 8.x.9 Build 1716: 1. Our BSIM4 model in IsSpice4 has been updated with the latest 4.2 release from Berkeley. There are 2 new model parameters XW and XL. It is backward compatible with 4.0 and 4.1 releases. |
|
2. The Simulation control dialog was slightly re-arranged (except for
Rx versions) to allow you to view simulation templates in a list box instead
of a drop down menu. The buttons for the older style sweep and optimization
that used Scope4 for data reduction were removed. You can still use the
Monte button for predefined measurements, which allows the use of multiple
processors (SpiceFarm) to speed up the simulations. 1. Several scripts that were lying dormant in Berkeley Spice3 have been brought to life. The compose command lets you build a vector based on an arbitrary table of values. For example, here is how we plot an EMI limit specification for CISPR22: |
* plot the specification |
Notice that imaginary data is entered for frequency to get the proper plot type. Many people wonder why Spice3 makes frequency a complex number when the imaginary part is always set to zero. It turns out that frequency values can have imaginary components and that’s how Spice3 extracts zeros in the pole zero analysis. You could even do this in a script to get values in the complex plane. Here’s the documentation provided in the source code for the compose command. Right now all we’ve tested (and fixed) is the values specification. |
The general syntax is ‘compose name parm = val ...’
|
2. As you can see, there are a lot more there, some of which may be useful to you. There are 2 fairly useful assignment operators that extract the mid part of a vector, making a new vector. When running a long simulation, use this feature to get rid of start-up transients before doing operation such as an FFT.
3. Scope5 now understands Sweep, Optimize and Monte scripts and allows you to make plot vectors after running a simulation. This is in addition to the usual way of defining measurement results before running the simulation. Look in our previous newsletter to see how it’s done. If you haven’t made measurement scripts before running IsSpice, you’ll be asked if you really want to run the simulation; if you want to make the measurements using Scope5, just go ahead. 4. Scope5 updates are now working for x-y plots in both time and frequency. After re-running a simulation, press <Ctrl>+u to automatically update your documents to immediately see what changed. 5. Checkout the !User scripts. They may give you some idea of what personalized scripts can do. The x hotkey rescales your data to fit in between the cursors. The w hotkey is used to make frequency measurements using the next 10 cycles after cursor 0. The power script takes previously plotted i-v curves and plots them as i vs. v and finds the maximum power dissipation. Besides hot keys, you can stick bitmaps in with the scripts (16 wide by 15 high) and drag them onto your customized toolbar. The emi script does an FFT (64k points) and plots the spectrum vs. the CISPR22 specification. To make the features in ICAP/4 easily understandable to users, we will release new Multi-Media tutorials. The first of these described the "Two-Port Network Characteristics" article in our last newsletter. To see how to get the most out of Scope5, try the Scope5 Tutorial. If you’re at DAC in June, come and see a live presentation describing Scope5 and Test Designer, straight from the mouth of our MarCom expert, Launa Morosan. If you’re in Europe, visit us at PCIM2001 in Nuremberg to find out more about our power supply templates. |
Magnetics Designer |
|
|
|
Needless to say, producing a new model that needs to run reliably in a complex environment led us to revisit some of the IsSpice Simulator Options. The main problems we encountered were: Divide by Zero 100*v(Vout)*i(r10)/(abs(v(Vinp)*i(VMin))+1u)> 150 ? 150 : 100*v(Vout)*i(r10)/(abs(v(Vinp)*i(VMin))+1u) The syntax for the above expression borrows from the C programming language shorthand for the if-then-else expression. The if condition precedes the ‘?’. If its TRUE, the expression between the ‘?’ and ‘:’ symbols is evaluated, otherwise the expression following the ‘:’ symbol is used. Without this, if the input current goes through zero, the simulation falls into its little black hole and stops. Mode Switches DC Iterations V= .99/(i(VM2)^2/v(Pr)+ .01) * i(VM2); Where I(VM2) is the current through the voltage source and Pr is its dissipation. If you substitute I*V for Pr and assume the .01 term is negligible, the equation reduced to V = .99*V. Without the .99 damping you could get numerical "drift" toward infinity. Another way of looking at it is that this equation looks like something you would get using an op-amp as a voltage follower with infinite gain. This equation was used to model series resistance losses in the PWM models. It makes sure dividing by zero can’t happen and is derived from: V = IR = I/(1/R1 + 1/R2) where I^2*R1 = Ploss, R2 is the max value to eliminate high loss at low currents. As a rule of thumb, the gain should be on the order of 1-reltol. We use reltol = .01 a lot, hence the gain of .99. Note: RELTOL sets the error in the B element calculation. When the change in B element voltage or current is greater than RELTOL*maxval + abstol, the iterations must continue. |
|
On May 8, 2001 US patent 6,230,305 was issued for Methods and Apparatus for Configuring Schematic Diagrams. The techniques used were developed as enabling technology for our Test Designer product and quickly found its way into our mainstream products. We hope you enjoy the quick and easy way this invention lets you deal with the complexity of viewing multiple aspects of a design with a simple visual interface. |
from Your Design |
Now, you can use Intusoft’s new optimizer to find parameter values that "center" your design about a product specification. We have canned a few objective functions for you to play with in the power supply template drawings. All you need to do is select a configuration to work in and select the components whose parameters you want to optimize. Double click on the part and choose the Tolerance/Sweep/Optimize tab. Then enter a tolerance in the optimize column for as many parameters as you want. The tolerance boundaries constrain the range for each parameter. Bring up the Simulation Control dialog and check out the objective function for each Test Configuration. Select the combination you want, select OPTIMIZE2 for the simulation mode (make sure the radio button near the selection is highlighted), check the script box in data reduction and press the <Simulate Selections> button. Approximately 12 simulations will be performed for each parameter given an optimize tolerance. You’ll see the objective function vary for each parameter and in a few minutes the results will be in your hands. To get the most out of optimization, you need to ask the right question. It all runs pretty fast and you’ll get a knack for formulating objective functions quickly. Optimization Under the Hood The optimization process itself consists of measuring the objective function for a set of parameter values, and then finding the parameter value that minimizes objective function. Optimize.scp is a single pass version and Optimize2.scp is a 2-pass version. If you are doing single parameter optimization to select a component value, then optimize should work. If you are doing multi-parameter optimization, use optimize2. You load either of these into IsEd5 and modify them; constants.maxiter, changes the number of iterations. The algorithm uses polynomial regression to make a high order curve fit so that it is possible to find a minimum value in the presence of local minimum values. The pure mathematical versions usually perform more iterations; but, a single iteration usually converges to within the component tolerance value, making further passes unnecessary. |
ICAP/4 Versions |
We get occasional requests to have more than one version of ICAP/4 available on the same machine. This usually comes with respect to running new product demos when you already have another version installed. Several of the ICAP/4 components use the system registry. When they are launched, the operating system looks in the registry to see where they are located. You get truly strange results if you install a new ICAP/4 program and try to run the older one. That’s because the new components will run and relative folder path associations will fail. To switch back and forth, you need to change the registry entries and change the ICAPSdir environment variable. Here’s a batch file that solves the problem. The trick is to run from an MSDOS or system shell. Any program launched from the shell will inherit environment variables. So the trick is to set ICAPSdir = "your icaps directory" using a batch file. Then is subsequent lines you use regedit to apply the appropriate .reg files. Next run snet5.exe and you have it made. When you exit the DOS shell, the environment variables will revert. If you change the registry back on the way out, then all you need is a single batch file to invoke an alternate copy of ICAP/4.
We have posted the batch file and .reg files in the technical support
portion of our web. Be aware that editing the registry is not for the
feint of heart. If you mess up it could make for big-time trouble. You
should make frequent repair disks. |
If you have a paid subscription to this newsletter, you can download the models and drawing files which were used to prepare this issue. To receive your password, contact sales@intusoft.com. |
Enter the subscriber password here to access supplementary models and drawing files. |