fpga_synth
Synthesizes Verilog RTL into a nextpnr-compatible JSON netlist for iCE40 or ECP5 FPGAs, reporting cell and wire counts to enable subsequent placement and routing.
Instructions
Synthesizes RTL to a nextpnr-ready JSON netlist with Yosys (synth_ice40/synth_ecp5), returning cell and wire counts. First stage of the FPGA flow; feed jsonNetlist into fpga_place_route.
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": {
"verilog_sources": "<verilog_sources>",
"top_module": "<top_module>"
},
"name": "fpga_synth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory. | |
| family | No | FPGA family (default: ice40). | |
| top_module | Yes | Top module name. | |
| verilog_sources | Yes | RTL source files. |