This shows you the differences between two versions of the page.
gnucap:user:gnucap_python [2018/09/06 05:59] felixs |
gnucap:user:gnucap_python [2020/05/28 02:53] (current) felixs 0.0.5 |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | source code at https://gitlab.com/gnucap/gnucap-python. 0.0.0 relased 9.2018. | + | source code at https://codeberg.org/gnucap/gnucap-python. 0.0.5 relased May 2020. |
- | this is a bidirectional python<->gnucap interface | + | A bidirectional python<->gnucap interface |
* based on SWIG, that | * based on SWIG, that | ||
- | * implements gnucap as a python module and | + | * implements a Python interface for Gnucap |
- | * enables gnucap extensions written in python. | + | * enables Gnucap extensions (components, algorithms..) in Python. |
- | optimisation | + | === applications === |
- | python scripts can easilty replace things like ASCO. see the examples directory | + | == optimisation == |
+ | |||
+ | quickly replace things like ASCO. Examples provided are | ||
* inv.py: optimise an inverter circuit (e.g. power consumption) while meeting some specs (such as timing) | * inv.py: optimise an inverter circuit (e.g. power consumption) while meeting some specs (such as timing) | ||
* mosfit.py: find bsim parameters to match DC behaviour | * mosfit.py: find bsim parameters to match DC behaviour | ||
+ | |||
+ | == command plugins == | ||
+ | |||
+ | Gnucap runs commands interactively. Such commands can now be implemented with a few lines of python | ||
+ | |||
+ | * pz_spice.py: find poles and zeroes using scipy.linalg. | ||
+ | * s_sparam.py: sparam analysis command. | ||
+ | * c_nodeset.py: a nodeset command |