fpga_place_route
Runs nextpnr place-and-route for iCE40/ECP5 FPGAs from a Yosys JSON netlist, returning utilization and Fmax. Specify device, package, or board preset.
Instructions
Runs nextpnr place-and-route for iCE40/ECP5 from a Yosys JSON netlist. Device and package resolve from an explicit pair or a board preset (explicit wins). Returns utilization and Fmax from the JSON report. Use fpga_boards to list presets.
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": {
"json_netlist": "<json_netlist>"
},
"name": "fpga_place_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. | |
| board | No | Board preset name (see fpga_boards). | |
| device | No | Device size, e.g. up5k, hx8k, 25k, 45k. | |
| family | No | FPGA family (default: from board preset, else ice40). | |
| package | No | Package, e.g. sg48, ct256, CABGA256. | |
| top_module | No | Top module name (for output naming). | |
| json_netlist | Yes | Yosys JSON netlist (jsonNetlist from fpga_synth). |