SLiCAP is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. Based on a work at: https://www.analog-electronics.eu/index.html
SLiCAP can be dowloaded and installed by running the MATLAB® script: installSLiCAP.p.
.zip archive of the lastest version of SLiCAP.SLiCAP accepts SPICE-like netlists. Many schematic capture programs can be configured to generate such netlists. SLiCAP comes with symbol libraries for LTspice, gSchem and lepton-eda.
For manual netlist generation please view the Device Models section in the help file.
LTspice can be used for netlist generation. LTspice symbols for SLiCAP are included in the LTspice subdirectory in the SLiCAP install path. LTspice works with Windows and Linux (under Wine). A version for MAC is also available. Go to LTspice for the latest version.
For an overview of SLiCAP symbols for LTspice, please view the LTSpice section in the help file.
The open source gschem package can also be used in conjunction with SLiCAP. This package is used by the author and symbols for SLiCAP built-in devices have been included in the SLiCAP zip file.
For an overview of SLiCAP symbols for gSchem, please view the gSchem section in the help file.
The improved gnet-spice-noqsi spice netlister should be used for netlist generation. SLiCAP has a built-in instruction for netlist generation with gschem and this netlister.
The application of gschem as front-end for SLiCAP has been tested under Linux and under Windows.
Linux installation
Linux installation of gschem and the gnet-spice-noqsi is well documented and straightforward.
After installation of gschem you need to create or modify the file: .gEDA/gafrc in your home directory with the contents:
(reset-component-library)
(component-library "<path to SLiCAP symbol Library>" "SLiCAP")
The component-library is found in the extracted SLiCAP_VXX_xxxx.zip file; in the subdirectory gschem/symbols/. Enter the complete path in the .gEDA/gafrc file.
If you wish to have a light background you can create or modify the file .gEDA/gschemrc in your home directory with the contents:
(load (build-path geda-rc-path "gschem-colormap-lightbg")) ; light background
Windows installation
Windows installation of gschem is straightforward: simply extract the gEDA-20130122.zip file and run the Windows installer. In the drop down menu of the “Select Components” dialog box select “Program only”, for the rest accept default settings.
The netlister is installed by copying the file gnet-spice-noqsi.scm from the extracted gnet-spice-noqsi.zip to: C:\Program Files (x86)\gEDA\gEDA\share\gEDA\scheme\gnet-spice-noqsi.
You need to create or modify the file gafrc in the C:\Users\<userName>\.gEDA\ directory. It should have the following content:
(reset-component-library)
(component-library "C:/Program Files (x86)/gEDA/gEDA/share/gEDA/sym/slicap")
The component library is found in the in the subdirectory gschem/symbols/ in the SLiCAP install path. Create a directory C:\Program Files (x86)\gEDA\gEDA\share\gEDA\sym\slicap and copy the component library to this directory.
If you wish to have a light background you can create or modify the file gschemrc in the C:\Users\<userName>\.gEDA\ directory. Its contents must be:
(load (build-path geda-rc-path "gschem-colormap-lightbg")) ; light background
Be sure you save these two files gafrc and gschemrc without any file extension.
Lepton-eda is a fork of geda-gaf. Please visit https://github.com/lepton-eda/lepton-eda for more information.
Linux information
The schematic symbols, the netlister and configuration information are located in the lepton-eda/ subdirectory of the SLiCAP install path. The netlister can also be downloaded from https://github.com/noqsi/gnet-spice-noqsi.
For compact node names (important for use in symbolic expressions) you need to reconfigure the default net name prefix.
This is how it should be done under Ubuntu-based Linux systems:
sudo lepton-cli config --system "netlist" "default-net-name" ""
With LTspice you can print schematics to a .PDF file using a PDF printer.
With gschem running under MSwindows you can write your schematic file to a .PDF file.
For proper display of schematics on html pages these .PDF files need to be be converted to .SVG files, you can use pdf2svg for this purpose. Under Linux and Mac OS you need to install ‘psd2svg’ to make this work.
With gschem running under Linux or Mac OS you can write your schematic file to a .EPS file.
.EPS files can be converted into .PDF files using the epstopdf command.
Ghostscript is often available in the package manager of Linux distributions. Otherwise Ghostscript versions can be downloaded from: Ghostscript.
With lepton-eda running under Linux you can print to pdf or svg.
When printing a schematic from LTspice with a PDF printer, the full path of the file will be listed at the bottom of the page. After the .PDF file has been converted into a .SVG file (see above), you can use inkscape to edit this SVG file and delete the footer.
Inkscape runs under Windows, Linux and Mac OS. Inkscape versions can be downloaded from: inkscape.org.
SLiCAP generates complete HTML reports, including beautifully typset expressions, plots, text, code fragments, tables and CSV files. This all does not require installation of additional packages.
Beautiful results are obtained with the Python Sphinx documentation package and the Sphinx Bootstrap theme. SLiCAP generates the Sphinx compatible REstructured text files that can be compiled from within de MATLAB workspace into html documentation with one instruction.
Python works under Windows, Linux and Mac. If you install Anaconda, you have a large number of Python packages available, including Sphinx. The bootstrap theme needs to be downloaded and installed seperately.
After Python has been installed, the Sphinx Bootstrap theme can be installed by opening a command window and enter:
pip install sphinx_bootstrap_theme
Configuration of SLiCAP and Sphinx for working with this theme is not necessary. All configuration files have been included with SLiCAP.