Skip to main content

Python based High Level Synthesis compiler

Project description

Test Suite PyPI Python License

polyphony

Polyphony is a Python-based High-Level Synthesis (HLS) compiler that generates synthesizable Verilog HDL from a Python subset.

Requirements

  • Python >= 3.12
  • Icarus Verilog (for HDL simulation)

Installation

pip install polyphony

Usage

polyphony [-h] [-o FILE] [-d DIR] [-c CONFIG] [-v] [-D] [-hd] [-q]
          [-vd] [-vm] [-op PREFIX] [-t TARGETS [TARGETS ...]] [-V]
          source
Option Description
-o FILE, --output FILE output filename (default is "polyphony_out")
-d DIR, --dir DIR output directory
-c CONFIG, --config CONFIG set configuration (JSON literal or file)
-v, --verbose verbose output
-D, --debug enable debug mode
-hd, --hdl_debug enable HDL debug mode
-q, --quiet suppress warning/error messages
-vd, --verilog_dump output VCD file in testbench
-vm, --verilog_monitor enable $monitor in testbench
-V, --version print the Polyphony version number

Examples

See tests

License

MIT License. See LICENSE for details.

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

polyphony-0.4.1.tar.gz (431.8 kB view details)

Uploaded Source

Built Distribution

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

polyphony-0.4.1-py3-none-any.whl (249.8 kB view details)

Uploaded Python 3

File details

Details for the file polyphony-0.4.1.tar.gz.

File metadata

  • Download URL: polyphony-0.4.1.tar.gz
  • Upload date:
  • Size: 431.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for polyphony-0.4.1.tar.gz
Algorithm Hash digest
SHA256 7b77becb22900341f049f18e6a49ea3fe9eea61eb6144d5f00140ab99fd6d470
MD5 8d63f2b0eafd6a10b9bb9100a1a1f364
BLAKE2b-256 3e846643212007339920f255140b8e13bddaa3c9e8b2875c67ce59fa7400cc94

See more details on using hashes here.

File details

Details for the file polyphony-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: polyphony-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 249.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for polyphony-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9a9db3b1d898498f4e24efd6679c98c29bfcfc852d305b7266ffdfd22e71769
MD5 eff262d886c973984d19f494416edcca
BLAKE2b-256 25d3801fefe95082f55c67d76c64a8cb85bc8b1888d42809127092671c5c27b1

See more details on using hashes here.

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