polyphony

March 13, 2026 ยท View on GitHub

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
OptionDescription
-o FILE, --output FILEoutput filename (default is "polyphony_out")
-d DIR, --dir DIRoutput directory
-c CONFIG, --config CONFIGset configuration (JSON literal or file)
-v, --verboseverbose output
-D, --debugenable debug mode
-hd, --hdl_debugenable HDL debug mode
-q, --quietsuppress warning/error messages
-vd, --verilog_dumpoutput VCD file in testbench
-vm, --verilog_monitorenable $monitor in testbench
-V, --versionprint the Polyphony version number

Examples

See tests

License

MIT License. See LICENSE for details.