fpga_bitstream
Packs a routed FPGA design into a bitstream for iCE40 or ECP5, using icepack or ecppack, optionally compressing, to enable device programming.
Instructions
Packs a routed image to a bitstream: icepack (.asc to .bin) for iCE40, ecppack (optionally --compress) for ECP5. Feed the result into fpga_program.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_file": "<input_file>"
},
"name": "fpga_bitstream"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. | |
| compress | No | Pass --compress to ecppack (ECP5 only). | |
| input_file | Yes | Routed image: .asc (iCE40) or .config (ECP5). |