Skip to main content

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

  1. 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
  1. Open the generated .sch file and manually arrange components. After running tool: pre After organizing gates: post

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 spice2sch or similar in order to avoid namespace confilcts.

Project details


Download files

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

Source Distribution

spice2sch-0.1.1.tar.gz (160.1 kB view details)

Uploaded Source

Built Distribution

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

spice2sch-0.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file spice2sch-0.1.1.tar.gz.

File metadata

  • Download URL: spice2sch-0.1.1.tar.gz
  • Upload date:
  • Size: 160.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for spice2sch-0.1.1.tar.gz
Algorithm Hash digest
SHA256 34f9c130888a6559eba8555eeb54587fd5c50b73693137513c9e834f9a126d0f
MD5 e7933bd62b92cf707f9f8a2905a18c49
BLAKE2b-256 9543125178a069a325807df38c866f78cdf95c6712ea252e9eaeca1769d1bbfd

See more details on using hashes here.

Provenance

The following attestation bundles were made for spice2sch-0.1.1.tar.gz:

Publisher: python-publish.yml on eliahreeves/spice2sch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spice2sch-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: spice2sch-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for spice2sch-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a17a5bde801d4ede32f81e84fb5492576676a7dc5cf41dc7519ff6c1aafc548
MD5 2982b0f52af4531dbbcb5f20db154e66
BLAKE2b-256 8dc7ff1b3619bae7a6f806bca7eb9558a24f1f5a0d5a99896a9e5c3463ed20d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for spice2sch-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on eliahreeves/spice2sch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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