XSPICE short intro

The XSPICE extension to the ngspice circuit simulator provides code modeling techniques to add new analog and digital models. Analog functions may be added to the netlist like any other hard coded analog model. Digital functions, if added to the netlist, are simulated in XSPICE through an embedded event-driven algorithm added to the Ngspice core. This algorithm is coordinated with the analog simulation algorithm to provide fast and accurate simulation of mixed-signal circuits and systems.

XSPICE usage by third parties

XSPICE has been used by developers outside of the ngspice branches. This page serves to provide links to these activities. If you are aware of other XSPICE usage, please let me know.

The first link describes a complete design flow using only open source tools, including ngspice for mixed signal simulation.

https://www.isotel.eu/mixedsim/intro/index.html

The next link describes an accurate simulator of the 8-bit AVR microcontrollers which has been integrated into ngspice

https://github.com/mcusim/MCUSim/releases/tag/0.2-preview1

In his PhD work Stephan Thiel has developed more than 200 code models for supporting signal processing simulation with XSPICE or ngspice. The code model sources, a setup for compilation using Visual Studio and executable dlls are available here (ca. 6.7 MB). Unfortunately there is not much documentation, so please have a look at the code model titles and their source code.

Relevant general links

  • XSPICE and Ngspice HOWTO: XSPICE code model generation starter and example.
  • Ngspice manual: The actual ngspice manual, XSPICE is covered in chapts. 12 and 25 - 29.
  • XSPICE docs: The original XSPICE documentation from Georgia Tech.
  • Spice OPUS: XSPICE page for the Spice OPUS simulator.
  • ICAP/4: XSPICE for the ICAP/4 simulator.