A CLI to convert SkyWater SKY130 spice files into xschem .sch files.
Project description
spice2sch
A CLI to convert SkyWater SKY130 spice files into xschem .sch files. Designed for sifferman/sky130_schematics. Available from PyPI.
Use without installing
For uv users
uvx spice2sch -h
Installation
For uv users (recommended)
uv tool install spice2sch
For pip users
pip install spice2sch
Usage
[!CAUTION] The output file will be overwritten without warning.
Specify and input .spice and and output .sch file.
spice2sch -i file.spice -o file.sch
Input and output will default to stdin and stdout making this equivalent to the above command:
cat file.spice | spice2sch > file.sch
Example
- Generate a sch file. The following command uses uvx to use the package without downloading, and pipes a spice netlist from the clipboard to the tool.
wl-paste | uvx spice2sch -o sky130_fd_sc_hd__xor3_4.sch
- Open the generated .sch file and manually arrange components.
After running tool:
After organizing gates:
Limitations
- Currently this program will assume all components are transistors. Using this on a .spice file with other components will not work.
- Although schematics will pass a Layout Versus Schematic (LVS) check, all components must be manually rearranged.
Running from source with uv
Clone the repo
git clone git@github.com:eliahreeves/spice2sch.git
cd spice-to-sh
Build and run
uv run spice2sch
[!NOTE] You may need to remove existing installations using
uv tool uninstall spice2schor similar in order to avoid namespace confilcts.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spice2sch-0.1.0.tar.gz.
File metadata
- Download URL: spice2sch-0.1.0.tar.gz
- Upload date:
- Size: 159.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b829a5dec7c8a66cf222dbd9663f5c15253fa3cb8fe2eeaa8c2d7dd9cd7e5baf
|
|
| MD5 |
97950f90282118cfe2c49652d32626a9
|
|
| BLAKE2b-256 |
d36ea01f746ade79b2068765737a57c0173cb516f20f9b57c8ea720f3b0458f6
|
Provenance
The following attestation bundles were made for spice2sch-0.1.0.tar.gz:
Publisher:
python-publish.yml on eliahreeves/spice2sch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spice2sch-0.1.0.tar.gz -
Subject digest:
b829a5dec7c8a66cf222dbd9663f5c15253fa3cb8fe2eeaa8c2d7dd9cd7e5baf - Sigstore transparency entry: 189859620
- Sigstore integration time:
-
Permalink:
eliahreeves/spice2sch@a18d45047b8a9a1e6f03d9109fc39adf5ee448f7 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/eliahreeves
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a18d45047b8a9a1e6f03d9109fc39adf5ee448f7 -
Trigger Event:
release
-
Statement type:
File details
Details for the file spice2sch-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spice2sch-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
239c1e622ef040eb72b062ec986ddfb64a798cf6d21fd5b87d3bd4b075420db7
|
|
| MD5 |
3ecac8df83e38ef3ee7480ad9fbf6893
|
|
| BLAKE2b-256 |
05fa68403e548a97c08322da4930a0a9ccb51055e0e5ba26b68d88977262f7bb
|
Provenance
The following attestation bundles were made for spice2sch-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on eliahreeves/spice2sch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spice2sch-0.1.0-py3-none-any.whl -
Subject digest:
239c1e622ef040eb72b062ec986ddfb64a798cf6d21fd5b87d3bd4b075420db7 - Sigstore transparency entry: 189859621
- Sigstore integration time:
-
Permalink:
eliahreeves/spice2sch@a18d45047b8a9a1e6f03d9109fc39adf5ee448f7 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/eliahreeves
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a18d45047b8a9a1e6f03d9109fc39adf5ee448f7 -
Trigger Event:
release
-
Statement type: