program_fpga
Flash a bitstream to an FPGA board using iceprog or openFPGALoader. Supports ice40, ecp5, gowin, and nexus families.
Instructions
Flash a bitstream to an FPGA board using iceprog (ice40) or openFPGALoader (ecp5/gowin/nexus). Provide bitstream as base64 (from place_and_route output) or a file path on disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | FPGA family (used to select default programmer) | |
| bitstream_b64 | No | Base64-encoded bitstream (from place_and_route bitstream_b64 field) | |
| bitstream_path | No | Path to bitstream file on disk | |
| programmer | No | Programmer tool (auto-detected from target if omitted) | |
| board | No | openFPGALoader --board flag (e.g. 'ulx3s', 'tangnano9k') | |
| timeout | No | Timeout in seconds |