NgSpice/PySpice for Electrical Circuit Analysis - Integrated Circuits - - An Online Book - |
||||||||
Integrated Circuits http://www.globalsino.com/ICs/ | ||||||||
================================================================================= | ||||||||
SPICE stands for “Simulation Program with Integrated Circuit Emphasis”, which is a program used in ICs and board-level design to check the integrity of circuit designs and to predict circuit behavior. NgSpice is an open-source SPICE simulator for electric and electronic circuits and is compatible with Windows and Linux. Xyce is a SPICE compatible simulator developed by the Sandia National Laboratories. PySpice is a free and open source Python module which interface Python to the NgSpice and Xyce circuit simulators. Its simulation output is converted to Numpy arrays for convenience. Code 1: Code 2: Code 3: Code 3: Linear Voltage-Controlled Current Sources Code 3: Linear Voltage-Controlled Voltage Sources Code 4: Linear Current-Controlled Current Sources Code 5: Linear Current-Controlled Voltage Sources Code 6: Output the controlling currents of the branches which do not contain resistors: ================================================= NgSpice simulation on circuits with diodes Switch-like diodes and NgSpice simulations ================================================= Wheatstone bridge: circuit and code: ================================================= Voltage divider: circuit and code:
|
||||||||
================================================================================= | ||||||||
|
||||||||