Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fsitok/spicex
Netlist extraction into SPICE format for KLayout.
https://github.com/fsitok/spicex
klayout python spice
Last synced: about 2 months ago
JSON representation
Netlist extraction into SPICE format for KLayout.
- Host: GitHub
- URL: https://github.com/fsitok/spicex
- Owner: fsitok
- License: agpl-3.0
- Created: 2019-01-29T16:16:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-31T12:58:13.000Z (almost 6 years ago)
- Last Synced: 2024-08-04T03:06:20.048Z (5 months ago)
- Topics: klayout, python, spice
- Language: Python
- Homepage: https://codeberg.org/tok/spicex
- Size: 22.5 KB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome_photonics - spicex: netlist extraction
README
# SpiceX
Netlist extraction into SPICE format for KLayout.Note: This code used KLayout on the `dvb` branch. It's probably not stable.
## Example
```python
import pya
import spicex"""
Netlist extraction is skipped here.
See KLayout documentation on how to extract a netlist.https://github.com/KLayout/klayout/wiki/2019-01-07
"""
# Perform netlist extraction
l2n.extract_netlist()netlist = l2n.netlist()
netlist.make_top_level_pins()
netlist.purge()
netlist.purge_nets()# Convert KLayout netlist to a PySpice netlist.
# Provide the SPICE model names for the transistor types.
device_class_name_to_model_mapping = {
'NMOS': 'NMOS_VTL',
'PMOS': 'PMOS_VTL'
}spice_netlist = spicex.netlist_to_spice(netlist, device_class_name_to_model_mapping)
# Dump SPICE to stdout.
print(spice_netlist)```