MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python

github.com/SLiCAP/SLiCAP_python @5.0.7

Chat with this repo
repository ↗ · DeepWiki ↗ · release 5.0.7 ↗ · + Follow
1,326 symbols 4,990 edges 95 files 550 documented · 41%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SLiCAP: more than SYMBOLIC SPICE

What it is

  • SLiCAP is an acronym for: S ymbolic Li near C ircuit A nalysis P rogram
  • SliCAP is a tool for algorithm-based analog design automation
  • SLiCAP is intended for setting up and solving design equations of electronic circuits
  • SLiCAP is a an open source application written in Python
  • SLiCAP is part of the tool set for teaching Structured Electronics Design at the Delft University of Technology

Why you should use it

  • SLiCAP facilitates analog design automation and stepwise, hierachically-structured, analog design
  • SLiCAP lets you relate circuit component and device geometry requirements to system performance requirements
  • SLiCAP makes complex symbolic circuit analysis doable
  • SLiCAP speeds up the circuit design process
  • SLiCAP integrates documentation and design ("one-click" update of HTML or PDF design reports)
  • SLiCAP facilitates design education and knowledge building

Features

  • SLiCAP-compatible schematic capture program with LaTeX rendering of expressions, with cli export of netlist, svg image and pdf image
  • Accepts SPICE-like netlists as input and provides netlist generation from, amongst others, Kicad and LTspice schematic files.
  • Facilitates concurrent design and documentation
  • Supports and facilitates structured analog design

Capabilities

  • Conversion of hierarchically structured SPICE netlist into a mixed symbolic/numeric matrix equation
  • Symbolic and numeric noise analysis
  • Symbolic and numeric noise integration over frequency
  • Symbolic and numeric determination of transfer functions and polynomial coefficients of transfer functions
  • Symbolic and numeric inverse Laplace Transform
  • Symbolic and numeric determination of network solutions
  • Symbolic and numeric pole-zero analysis (symbolic pole-zero analysis for low-order systems only)
  • Symbolic and numeric Routh array
  • Order estimation of feedback circuits (numeric only)
  • Root-locus analysis with an arbitrarily selected circuit parameter as root locus variable
  • Symbolic and numeric DC and DC variance analysis for determination of budgets for resistor tolerances, offset, temperature effects, matching and tracking
  • Symbolic and numeric derivation and solution of design equations for bandwidh, frequency response, noise, dc variance, and temperature stability

Installing SLiCAP from pypi

  1. Enter:

    pip install slicap

Addidional software

SLiCAP can generate netlists from schematic files from:

  • Kicad (all platforms, preferred!)
  • LTspice (MSWindows: install LTspice on the system drive, Linux and MacOS: use MSwindows version and wine)
  • gschem (MSWindows: install gschem and its netlister on the system drive, Linux and MacOS: use lepton-eda)
  • lepton-eda (Linux and MacOS, MSWindows: use gSchem for windows)

Preferred for all platforms is to install or upgrade to the latest version of Kicad, and install Inkscape.

First Run

On the first run:

  • SLiCAP searches for installed applications:

  • Kicad,

  • LTspice
  • NGspice
  • gSchem (MSWindows only)
  • lepton-eda (Linux and MacOS)

  • SLiCAP creates a SLiCAP.ini file in the user home directory. This file contains initial setting and commands to start the above applications. It can be edited manually, and when deleted it will be recreated on the next run. Searching for applications on MSWindows may take a while!

On the first run of a project, SLiCAP creates a SLiCAP.ini file in the project folder, each time you run the project this file is updated. It will be recreated after deletion.

Documentation

>>> Help()

Opens HTML documentation in your default browser. It can also be viewed at https://slicap.org

Setting up SLiCAP from source code

  1. Intall Python 3.12+ with the packages listed in requirements.txt (for MSwindows Anaconda installation is preferred)
  2. Download or clone the SLiCAP archive from github
  3. Extract it in some directory
  4. Open a terminal (or an Anaconda terminal if you run python from Anaconda) in the directory with setup.py
  5. Install requirements:

    python -m pip install -r requirements.txt

  6. Make Documentation:

    cd ./doc make html cd ..

  7. Lastly, Install:

    python -m pip install .

Don't forget the dot!

Contributing

If you want to contribute to the development of SLiCAP, please Email Us.

Bugs

In case bugs are found, please report them to the 'Issues' page.

Core symbols most depended-on inside this repo

save
called by 147
SLiCAP/SLiCAPprotos.py
format
called by 110
SLiCAP/SLiCAPprotos.py
apply
called by 108
SLiCAP/schematic/attribute_dialog.py
roundN
called by 69
SLiCAP/SLiCAPmath.py
_pt_key
called by 68
SLiCAP/schematic/canvas.py
eqn
called by 66
SLiCAP/SLiCAPrst.py
text
called by 58
SLiCAP/schematic/text_dialog.py
clear
called by 44
SLiCAP/SLiCAPinstruction.py

Shape

Function 683
Method 562
Class 81

Languages

Python81%
TypeScript19%

Modules by API surface

docs/sphinx/source/_static/handsontable.full.min.js250 symbols
SLiCAP/schematic/canvas.py87 symbols
SLiCAP/SLiCAPmath.py57 symbols
SLiCAP/schematic/component_item.py53 symbols
SLiCAP/SLiCAPinstruction.py53 symbols
SLiCAP/schematic/window.py51 symbols
SLiCAP/SLiCAPexecute.py45 symbols
SLiCAP/SLiCAPyacc.py36 symbols
SLiCAP/SLiCAPhtml.py36 symbols
SLiCAP/schematic/model_dialog.py28 symbols
SLiCAP/schematic/symbol_library.py27 symbols
SLiCAP/SLiCAPprotos.py23 symbols

For agents

$ claude mcp add SLiCAP_python \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact