Skip to main content

A compiler framework that automates translation from source code to silicon.

Project description

SiliconCompiler

Python CI Tests Tools CI Tests Daily CI Tests Wheels Lint Documentation Status Downloads

What is SiliconCompiler?

A modular build system for hardware ("make for silicon"). The project philosophy is to "make the complex possible while keeping the simple simple".

SC Overview

The project foundation is a standardized dynamic JSON schema for configuring and tracking of compile time parameters related to design setup, libraries, tools, Process Design Kits (PDKs), flows, constraints, compiler time options, and run time metrics, advanced projects (like ASICs) are far too complex to be handled manually through markup languages like JSON/YAML, so the project also includes a simple (but powerful) object oriented Python API for compilation setup, run time scheduling, and results analysis. For more information about the project motivation and design philosophy, you can refer to the following paper.

A. Olofsson, W. Ransohoff, N. Moroze, "Invited: A Distributed Approach to Silicon Compilation", 59th Design Automation Conference (DAC), 10-14 July 2022, San Francisco, CA, USA. Published, 7/2022.

Why SiliconCompiler?

  • Ease-of-use: Programmable with a simple Python API
  • Portability: Powerful dynamic JSON schema supports ASIC and FPGA design and simulation
  • Speed: Flowgraph execution model enables cloud scale execution.
  • Friction-less: Remote execution model enables "zero install" compilation
  • Modularity: Tool abstraction layer makes it easy to add/port new tools to the project.
  • Provenance: Compilation manifests created automatically during execution.
  • Documented: An extensive set of auto-generated high quality reference documents.
  • In-use: Actively used by Zero ASIC for commercial tapeouts at advanced process nodes.

Supported Technologies

Type Supported
Languages C, Verilog, SV, VHDL, Chisel, Migen/Amaranth, Bluespec
Simulation Verilator, Icarus, GHDL
Synthesis Yosys, Vivado, Synopsys, Cadence
ASIC APR OpenRoad, Synopsys, Cadence
FPGA APR VPR, nextpnr, Vivado
Layout Viewer Klayout, OpenRoad, Cadence, Synopsys
DRC/LVS Magic, Synopsys, Siemens
PDKs sky130, asap7, freepdk45, gf12lp, intel16

Getting Started

SiliconCompiler is available as wheel packages on PyPI for macOS, Windows and Linux platforms. For working Python 3.6-3.11 environment, just use pip.

python -m pip install --upgrade siliconcompiler

Converting RTL into DRC clean GDS takes less than 10 lines of simple Python code.

import siliconcompiler                             # import python package
chip = siliconcompiler.Chip('heartbeat')           # create chip object
chip.load_target('skywater130_demo')               # load a pre-defined target
chip.input('heartbeat.v')                          # set input sources
chip.clock('clk', period=10)                       # set constraints
chip.set('option','remote', True)                  # enable remote execution
chip.run()                                         # run compilation
chip.summary()                                     # print summary
chip.show()                                        # show layout

To reduce the pain of tool installation, the project supports free remote compilation at siliconcompiler.com.

Simple designs can be compiled using the built in command line 'sc' app:

sc -remote -target "asic_demo"

Documentation

The full reference manual and tutorials can be found HERE.

Installation

Complete installation instructions are available in the Installation Guide.

To install the project from source (recommended for developers only).

git clone https://github.com/siliconcompiler/siliconcompiler
cd siliconcompiler
python -m pip install -e .             # Required install step
python -m pip install -e .[docs,test]  # Optional install step for generating docs and running tests

Tool Installation

Installation instructions for all external tools can be found in the Tools section of the reference manual. We have included shell setup scripts (Ubuntu) for most of the supported tools. See the ./setup directory for a complete set of scripts and ./setup/_tools.json for the currently recommended tool versions.

Contributing

SiliconCompiler is an open-source project and welcomes contributions. To find out how to contribute to the project, see our Contributing Guidelines.

Issues / Bugs

We use GitHub Issues for tracking requests and bugs.

License

Apache License 2.0

More information

Resources Link
Website https://www.siliconcompiler.com
Documentation https://docs.siliconcompiler.com
Sources https://github.com/siliconcompiler/siliconcompiler
Issues https://github.com/siliconcompiler/siliconcompiler/issues
RFCs https://github.com/siliconcompiler/rfcs
Discussion https://github.com/siliconcompiler/siliconcompiler/discussions

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

siliconcompiler-0.11.2-cp311-cp311-win_amd64.whl (2.6 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

siliconcompiler-0.11.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

siliconcompiler-0.11.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

siliconcompiler-0.11.2-cp311-cp311-macosx_11_0_arm64.whl (6.8 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

siliconcompiler-0.11.2-cp311-cp311-macosx_10_15_x86_64.whl (6.9 MB view hashes)

Uploaded CPython 3.11 macOS 10.15+ x86-64

siliconcompiler-0.11.2-cp310-cp310-win_amd64.whl (2.6 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

siliconcompiler-0.11.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

siliconcompiler-0.11.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

siliconcompiler-0.11.2-cp310-cp310-macosx_11_0_arm64.whl (6.8 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

siliconcompiler-0.11.2-cp310-cp310-macosx_10_15_x86_64.whl (6.9 MB view hashes)

Uploaded CPython 3.10 macOS 10.15+ x86-64

siliconcompiler-0.11.2-cp39-cp39-win_amd64.whl (2.6 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

siliconcompiler-0.11.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

siliconcompiler-0.11.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

siliconcompiler-0.11.2-cp39-cp39-macosx_11_0_arm64.whl (6.8 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

siliconcompiler-0.11.2-cp39-cp39-macosx_10_15_x86_64.whl (6.9 MB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

siliconcompiler-0.11.2-cp38-cp38-win_amd64.whl (2.6 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

siliconcompiler-0.11.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

siliconcompiler-0.11.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

siliconcompiler-0.11.2-cp38-cp38-macosx_11_0_arm64.whl (6.8 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

siliconcompiler-0.11.2-cp38-cp38-macosx_10_15_x86_64.whl (6.9 MB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

siliconcompiler-0.11.2-cp37-cp37m-win_amd64.whl (2.6 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

siliconcompiler-0.11.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

siliconcompiler-0.11.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

siliconcompiler-0.11.2-cp37-cp37m-macosx_10_15_x86_64.whl (6.9 MB view hashes)

Uploaded CPython 3.7m macOS 10.15+ x86-64

siliconcompiler-0.11.2-cp36-cp36m-win_amd64.whl (2.6 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

siliconcompiler-0.11.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

siliconcompiler-0.11.2-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

siliconcompiler-0.11.2-cp36-cp36m-macosx_10_15_x86_64.whl (6.9 MB view hashes)

Uploaded CPython 3.6m macOS 10.15+ x86-64

Supported by

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