Logik is a light weight FPGA tool chain based on mature open source technologies.
Project description
Logik
Logik is an open source FPGA tool chain with support for high level language parsing, synthesis, placement, routing, bit-stream generation, and analysis. Users enter design sources, constraints, and compile options through a simple SiliconCompiler Python API. Once setup is complete, automated compilation can be initiated with a single line run command. Logik relies on the Logiklib project for all architecture and device descriptions.
Logik supports most of the features you would expect in a commercial proprietary FPGA tool chain.
| Feature | Status |
|---|---|
| Design languages | SystemVerilog, Verilog, VHDL |
| DSP synthesis | Supported |
| RAM synthesis | Supported |
| Timing constraints (SDC) | Supported |
| Pin Constraints (PCF) | Supported |
| Bitstream generation | Supported |
| IP management | Supported |
| Remote compilation | Supported |
| Multi-clock designs | Supported |
| Supported devices | Logiklib devices |
Getting Started
The Logik tool chain is available through PyPi and can be installed using pip.
python -m pip install --upgrade logik
All open source FPGA pre-requisites can be installed via the SiliconCompiler sc-install utility.
sc-install -group fpga opensta
The following example illustrate some essential Logik features. For complete documentation of all options available, see the SiliconCompiler project.
import siliconcompiler
from logik.flows.logik_flow import LogikFlow
from logiklib.zeroasic.z1000 import z1000
# 1. Create a Design object to hold source files and constraints.
design = siliconcompiler.Design('adder')
design.add_file('adder.v', fileset="rtl")
design.set_topmodule('adder', fileset="rtl")
# 2. Create an FPGA project
project = siliconcompiler.FPGA(design)
# 3. Assign file sets to use for elaboration
project.add_fileset('rtl')
# 4. Select the rtl2bits flow to use
project.set_flow(LogikFlow())
# 5. Load FPGA part settings and associated flow and libraries.
project.set_fpga(z1000.z1000())
# 6. User defined options
project.option.set_quiet(True)
# 7. Run compilatin
project.run()
#6. Display summary of results
project.summary()
[!NOTE] The required files can be found at: heartbeat example
Examples
- Ethernet: Ethernet MAC compiled for the
z1000architecture - Adder: Small adder example compiled for the
z1000architecture. - Picorv32: picorv32 RISC-V CPU example compiled for the
z1062architecture.
Documentation
Installation
Logik is available as wheel packages on PyPI for macOS, Windows and Linux platforms. For a Python 3.8-3.12 environment, just use pip to install.
python -m pip install --upgrade logik
Running natively on your local machine will require installing a number of prerequisites:
- Silicon Compiler: Hardware compiler framework
- Slang: SystemVerilog Parser
- GHDL: VHDL parser
- Yosys: Logic synthesis platform
- Wildebeest: High performance synthesis yosys plugin
- VPR: FPGA place and route
- FASM: FPGA assembly parser and generator
- OpenSTA: Production grade static timing analysis engine
We recommend using the SiliconCompiler sc-install utility to automatically install the correct versions of all open source FPGA tool dependencies.
sc-install -group fpga opensta
Detailed installation instructions can be found in the SiliconCompiler Installation Guide.
License
The Logik project is licensed under the open source Apache License 2.0. For licensing terms of all dependencies, visit depedency repository.
Issues / Bugs
We use GitHub Issues for tracking requests and bugs.
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
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 logik-0.2.0.tar.gz.
File metadata
- Download URL: logik-0.2.0.tar.gz
- Upload date:
- Size: 2.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2357d840c9730cd3d5f75e9140f473107ba6f8d5228831872b7bc28b2a208546
|
|
| MD5 |
e9d111f4c854bc0410090aa59dbcd70d
|
|
| BLAKE2b-256 |
3dd55e7719b29559828f92f3dc4b1a3632d87becbc2be7fe06334215446255c1
|
Provenance
The following attestation bundles were made for logik-0.2.0.tar.gz:
Publisher:
wheels.yml on siliconcompiler/logik
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
logik-0.2.0.tar.gz -
Subject digest:
2357d840c9730cd3d5f75e9140f473107ba6f8d5228831872b7bc28b2a208546 - Sigstore transparency entry: 624164339
- Sigstore integration time:
-
Permalink:
siliconcompiler/logik@f4596ed097ba18a2a2784fd6c5ea2ca9b2dc0424 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/siliconcompiler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@f4596ed097ba18a2a2784fd6c5ea2ca9b2dc0424 -
Trigger Event:
release
-
Statement type:
File details
Details for the file logik-0.2.0-py3-none-any.whl.
File metadata
- Download URL: logik-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
728500491f3bbf960ca8dc3df08ae0ded72bf97422cd6bd6b5ff7a4fbde1c637
|
|
| MD5 |
1ec7b878936ce050a1794cb0e7446713
|
|
| BLAKE2b-256 |
b81a2d505bf187fba377dcdc405f9cb263a042a32e752740098ad4f8d45bcb7d
|
Provenance
The following attestation bundles were made for logik-0.2.0-py3-none-any.whl:
Publisher:
wheels.yml on siliconcompiler/logik
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
logik-0.2.0-py3-none-any.whl -
Subject digest:
728500491f3bbf960ca8dc3df08ae0ded72bf97422cd6bd6b5ff7a4fbde1c637 - Sigstore transparency entry: 624164384
- Sigstore integration time:
-
Permalink:
siliconcompiler/logik@f4596ed097ba18a2a2784fd6c5ea2ca9b2dc0424 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/siliconcompiler
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@f4596ed097ba18a2a2784fd6c5ea2ca9b2dc0424 -
Trigger Event:
release
-
Statement type: