Skip to main content
Glama

生成 SPI Flash 镜像 (.sfc)

fpga_gen_sfc

Convert .sbit bitstreams into .sfc flash configuration files offline; set flash model, read opcode, and start address to target any compatible FPGA configuration flash.

Instructions

离线把 .sbit 转成 .sfc(cfg_gen_sfc),不连器件、不需 cable/confirm。flash 型号(-device_name)、读 opcode、起始地址全部参数化,可烧任意所连 FPGA 的配置 flash;不内置任何板级默认。多启动用 fpga_gen_multi_file。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sfcNo输出 .sfc 路径;默认与 sbit 同名换 .sfc
isX8No-is_x8:X8 模式转换
sbitYes.sbit 绝对路径
opcodeNoflash 读命令码(-opcode),仅支持 0x0B/0x3B/0x6B/0x0C/0x3C/0x6C
fastModeNo-fast_mode:下降沿采样
fileListNo用户数据文件列表(-file_list),与 userAddressList 对应
extraByteNo-extra_byte:生成 sfc 时是否补一个额外字节
deviceNameNoflash 型号(-device_name);省略=cdt 默认 N25Q256。可接受名随 PDS 版本而异:2025.2 收 W25Q128Q/W25Q256/N25Q128 等(Winbond 带 Q 后缀),但拒 W25Q128/WINBOND128M;老版(2022.2)接受名不同。型号开放、按实际/兼容片选,未知时先用默认或 W25Q128Q 兼容名试。
pdsVersionNo可选 PDS 版本/标签
timeoutSecNo超时秒数,默认 120
writeChecksumNo-write_checksum:写入校验和信息
userAddressListNo用户数据文件起始地址列表(-user_address_list),十六进制
sbitStartAddressNosbit 起始地址(-sbit_start_address),十六进制如 0x00000000;省略=不传(从 0)
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden and does well: it discloses the offline/no-hardware nature, the lack of built-in board defaults, and the parameterized flash model/read opcode/start address. It does not mention overwrite behavior or return details, but those are minor for a file-generation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loades the core transformation, and each sentence adds distinct value: offline/no-hardware context and multi-boot routing. There is no tautology or redundant detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Combined with a fully documented schema, the description supplies the key operational context an agent needs: it is an offline generation step, not a hardware-bound operation, and multi-boot is handled elsewhere. It could add a note about prerequisites such as PDS environment, but the schema's optional pdsVersion and the sibling tool set already hint at that.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds a useful umbrella statement that flash model, read opcode, and start address are fully parameterized, but it does not replace the schema-level parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific operation: offline conversion of .sbit to .sfc via cfg_gen_sfc, which clearly identifies the tool's purpose. It also differentiates it from siblings by noting multi-boot should use fpga_gen_multi_file.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly sets the usage context: offline, no device, no cable, no confirm. It also provides a concrete alternative for multi-boot, so an agent can route correctly without guessing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Renkos1/pango-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server