WeSpice Libraries
Lindentree Software
Creating the libraries
- The libraries are created when you start WeSpice the first time.
- Nothing is deleted if you uninstall the app.
- If an update of WeSpice contains also library updates, you will be notified.
- You can re-create them at any moment from the Settings menu.
- Any update / re-create operation overwrites files on the SD-card with the originals. It will not delete any extra file or folder.
- If you changed stuff (ex: added models in an existing Model.sys file), you should copy them somewhere else before the update.
- Generally, it's better to make your own libraries and copy from the system libraries the things you need.
/syslib
- This library contains symbols for all analog primitives. They are just examples to get you started.
If you don't like them, you can tweak them any way you like.
- Some components have a few simple models, mimicking a 0.18u technology:
N18 and P18 are MOS models for 0.18u, N33 and P33 are MOS models for 0.35u,
and there are also models for a vertical PNP and some diodes.
/xanalib, /xdiglib, /xreallib
- These libraries contain symbols for most XSPICE code models.
- All are usable as component type "A" + model card. This is useful when most instances will share the same model (ex: digital libraries).
- Many can also be packaged as sub-circuits (containing one "A" component and its model) to allow easier parameter editing when instanced.
- Many symbols are only for some possible forms of the respective code model (ex: summer only for differential voltages and 2 inputs, gates only with 2,3,4 inputs).
You can easily build your own versions starting from the ones supplied.
- There are also a few useful sub-circuits built from more code models.
/samples
- fold_casc is a folded cascode OTA. Stability simulation bench for it is in fold_casc_sim_ac.
- bandgap is a bandgap reference using the folded cascode.
It has some interesting simulations defined: Resistor-TEMP sweep, PSRR, startup.
- chargepump is a two-stage chargepump, using the subcells chargepump_drv, inv3v, and trig3v.
- simtests contains a lot of *.cir netlists used to test spice simulators. No schematics.
Just "Include" them one-by-one in the Analysis tab, run the simulations and look at results.
You might need to open the netlist with the Text Editor to understand which variables are interesting to look at.
These files also contain some useful generic models for different components.
- synth_sine uses digital and analog filters to build a sine wave starting from a square wave.
It is a slightly modified version of the advanced example in the NGSPICE manual (also found in /samples/xspice/tests/mixed_mode.deck).
- sigmadelta1 is a basic 1st order sigma-delta ADC, demonstrating how easy it is to model advanced mixed-signal schematics with XSPICE.
- sigmadelta2 is a more sophisticated 2nd order sigma-delta ADC.
- xspice_tests contains a lot of *.deck netlists to test and demo the XSPICE code models. No schematics.
As for /samples/simtests, "Include" them one-by-one in the Analysis tab, run the simulations and look at results.
- params is an example on parameters usage in schematics.
- start is an empty circuit. It's a fall-back start directory for WeSpice. Please don't remove it.