Skip to main content

Logik is a light weight FPGA tool chain based on mature open source technologies.

Project description

Logik

Regression Lint License

Logik is an open source FPGA tool chain with support for high level language parsing, synthesis, placement, routing, bitstream 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_flow

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

The following example illustrates 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")

# Create an FPGA project
project = siliconcompiler.FPGA(design)

# Assign file sets to use for elaboration
project.add_fileset('rtl')

# Select the rtl2bits flow to use
project.set_flow(LogikFlow())

# Load FPGA part settings and associated flow and libraries.
project.set_fpga(z1000.z1000())

# User defined options
project.option.set_quiet(True)

# Run compilation
project.run()

# Display summary of results
project.summary()

[!NOTE] The required files can be found here

Examples

  • Ethernet: Ethernet MAC compiled for the z1000 architecture.
  • Adder: Small adder example compiled for the z1000 architecture.
  • Picorv32: picorv32 RISC-V CPU example compiled for the z1062 architecture.

Documentation

Installation

Logik is available as wheel packages on PyPI for macOS, Windows and Linux platforms. For working Python >= 3.10 environments, 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
  • 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

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 dependency 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

logik-0.3.0.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

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

logik-0.3.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file logik-0.3.0.tar.gz.

File metadata

  • Download URL: logik-0.3.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.13

File hashes

Hashes for logik-0.3.0.tar.gz
Algorithm Hash digest
SHA256 489e12977850e8638b7887b305088578fdc8e90e9257d792e6fef0f7dd6e1305
MD5 f797e22bbc3ec94aaa2142f63ff8141d
BLAKE2b-256 144ad3bb577d4ac96731a8227dddf464da7ef9e9666c431db14c8954e102d27f

See more details on using hashes here.

Provenance

The following attestation bundles were made for logik-0.3.0.tar.gz:

Publisher: wheels.yml on siliconcompiler/logik

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

File details

Details for the file logik-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: logik-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for logik-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d0c54b0e50b7a66dc75b3e61bcc5b3cb8c2f7eb7337ff6f783635079a76884a
MD5 ae2b5f618ef544627d06a8115c5eeed6
BLAKE2b-256 d977b355829c1942eb069873673b500b3b35ec2ecfb1d8385581a300a3846bba

See more details on using hashes here.

Provenance

The following attestation bundles were made for logik-0.3.0-py3-none-any.whl:

Publisher: wheels.yml on siliconcompiler/logik

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