Polyphony is a Python-based High-Level Synthesis (HLS) compiler that generates synthesizable Verilog HDL from a Python subset.
- Python >= 3.12
- Icarus Verilog (for HDL simulation)
pip install polyphonypolyphony [-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 |
See tests
MIT License. See LICENSE for details.