Skip to main content

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

Project description

SC logo

Quick CI Tests Daily CI Tests Wheels Documentation Status Downloads

Mission

SiliconCompiler is an open source compiler framework that aims to automate translation from source code to silicon.

Project Overview

The SiliconCompiler project includes a standardized compiler data Schema, a Python object oriented API, and a distributed systems execution model. The project philosophy is to "make the complex possible while keeping the simple simple".

Intrigued? Check out the extensive documentation!

import siliconcompiler                    # import python package
chip = siliconcompiler.Chip()             # create chip object
chip.load_target('freepdk45_demo')        # load pre-defined flow
chip.set('source', 'heartbeat.v')         # define list of sources
chip.set('design', 'heartbeat')           # set top module name
chip.set('constraint', 'heartbeat.sdc')   # define constraints
chip.set('remote', True)                  # compiler remotely
chip.run()                                # run compilation
chip.summary()                            # print run summary
chip.show()                               # show layout

Command Line Interface

Command line interface programs are very effective for quick experimentation. SiliconCompiler includes a command line program 'sc', with full support for all compiler schema parameters. For simple designs, compiling using sc is as easy as using gcc or llvm.

pip install siliconcompiler
echo "module flipflop (input clk, d, output reg out); \
	always @ (posedge clk) out <= d; endmodule"> flipflop.v
sc flipflop.v -remote

More complex designs are handled by simply adding more options.

sc hello.v add.v -remote -constraint hello.sdc -target "skywater130_demo"

Installation

SiliconCompiler is available as wheel packages on PyPI for macOS, Windows and Linux platforms. Full complete installation instructions see the Installation Guide. If you already have a working Python 3.6-3.10 environment, just use pip:

python -m pip install siliconcompiler

To install the project from source (supported on Linux and macOS platforms):

git clone https://github.com/siliconcompiler/siliconcompiler
cd siliconcompiler
git submodule update --init --recursive third_party/tools/openroad
pip install -r requirements.txt
python -m pip install -e .

External Dependencies

Installation instructions for all external tools can be found in the Tools Directory. For the '-remote' option, there are no external dependencies.

Contributing

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

Issues / Bug Reports

We use GitHub Issues for tracking requests and bugs.

License

Apache License 2.0

Project details


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.9.0-cp310-cp310-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

siliconcompiler-0.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

siliconcompiler-0.9.0-cp310-cp310-macosx_11_0_arm64.whl (5.0 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

siliconcompiler-0.9.0-cp310-cp310-macosx_10_15_x86_64.whl (5.0 MB view hashes)

Uploaded CPython 3.10 macOS 10.15+ x86-64

siliconcompiler-0.9.0-cp39-cp39-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

siliconcompiler-0.9.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.4 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

siliconcompiler-0.9.0-cp39-cp39-macosx_11_0_arm64.whl (5.0 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

siliconcompiler-0.9.0-cp39-cp39-macosx_10_15_x86_64.whl (5.0 MB view hashes)

Uploaded CPython 3.9 macOS 10.15+ x86-64

siliconcompiler-0.9.0-cp38-cp38-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

siliconcompiler-0.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.4 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

siliconcompiler-0.9.0-cp38-cp38-macosx_11_0_arm64.whl (5.0 MB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

siliconcompiler-0.9.0-cp38-cp38-macosx_10_15_x86_64.whl (5.0 MB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

siliconcompiler-0.9.0-cp37-cp37m-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.7m Windows x86-64

siliconcompiler-0.9.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.4 MB view hashes)

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

siliconcompiler-0.9.0-cp37-cp37m-macosx_10_15_x86_64.whl (5.0 MB view hashes)

Uploaded CPython 3.7m macOS 10.15+ x86-64

siliconcompiler-0.9.0-cp36-cp36m-win_amd64.whl (3.0 MB view hashes)

Uploaded CPython 3.6m Windows x86-64

siliconcompiler-0.9.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (27.4 MB view hashes)

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

siliconcompiler-0.9.0-cp36-cp36m-macosx_10_15_x86_64.whl (5.0 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