Skip to main content

Python library for inteaction with SPICE-like simulators

Project description

FBESpice

Python library to interact with SPICE-like circuit simulators.

For analog-/mixed-signal design engineers a schematic is a graphical language conveying much more than the connectivity of devices. A good schematic, on top of connectivity, provides information about required matching properties and strategies, information relevant for reliability, nodes where parasitic resistance and/or capacitance is critically important, etc. Current days netlist formats only capture connectivity information. Therefore, in the analog-/mixed-signal, RF and mmW worlds, netlists can not be seen as substitutes for schematics. However, a circuit netlist is necessary for simulation, and it's usually generated automatically from schematics.

Unfortunately, open-source SPICE-like simulators are quite restrictive in the accepted netlist format. For example, the Xyce simulator offers advanced Harmonic-Balance simulation capabilities, but it's not possible to specify the fundamental frequencies through variables. Therefore, for every test frequency, it's necessary to change their values in several places (sources, simulation statements, ...) which is tedious and error-prone. To solve this problem, this library introduces the concept of a meta-netlist which is similar to a netlist, but with holes where you can insert the value of meta-variables. The flow is then:

  1. Generate the meta-netlist from a schematic.
  2. Convert the meta-netlist into a final netlist from a Pytohn program or REPL.
  3. Run the simulation.
  4. Analyse the results in Python (or by other means).

This flow is easily amenable to a complete and automated characterisation over PVT of a system or circuit. For more details see the documentation.

Dependencies

fbespice depends on the following Python libraries:

  • NumPy
  • Pandas

Installation

fbespice is available on PyPi. The easiest way to install it on Unix-like systems is via pip:

pip install fbespice

Alternatively you can download the Python distribution archives from the release page, or download the source code and add its location to the environment variable PYTHONPATH.

Project details


Release history Release notifications | RSS feed

This version

0.8

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fbespice-0.8.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fbespice-0.8-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file fbespice-0.8.tar.gz.

File metadata

  • Download URL: fbespice-0.8.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for fbespice-0.8.tar.gz
Algorithm Hash digest
SHA256 a1fa44dc2c73e3e0b5019adff2e656937bc31da61e5f59c17e9db2a2a41e58dc
MD5 0cf869f041c0cf5a70eb552047e94c10
BLAKE2b-256 e8629945f3fb7c89f8c80c6321bbbf3239e9772addc8e2e3b9bd97bd51bcd732

See more details on using hashes here.

File details

Details for the file fbespice-0.8-py3-none-any.whl.

File metadata

  • Download URL: fbespice-0.8-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for fbespice-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e14b6803cf7aa5cc1e912ebedb25d449f9f0415ce771cf3031661eb4c417e16d
MD5 938e01717a62f3b24ed4492164e934bc
BLAKE2b-256 1d9ad226508d2016c1da83bc727ea0b47d5b376253f21800a354eef1bb187418

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page