verilog_compile_check
Check Verilog/SystemVerilog syntax and connectivity with iverilog or Verilator. Get synthesis-readiness feedback in seconds, 50x faster than Vivado.
Instructions
用 iverilog / verilator 做 Verilog 语法 + 连接性检查(比 Vivado 综合快 50 倍)。
典型用途:写完或改完 RTL 想在几秒内确认"能不能过综合",不用等 30-60s Vivado。 需要机器上装 iverilog 或 verilator: Windows: scoop install iverilog / choco install verilator Linux: apt install iverilog / apt install verilator macOS: brew install icarus-verilog / brew install verilator
检查模式:
iverilog -t null:只做 parse + elaboration,不产物
verilator --lint-only -Wall:静态检查,风格警告也给(更严格)
未装任何工具时返回 SKIP 并附安装指引,不报错。
Args: files: Verilog / SystemVerilog 文件路径列表(.v / .sv)。 .vhd/.vhdl 不支持,返回 SKIP 并附替代方案指引(check_syntax)。 tool: "auto"(默认,优先 iverilog) / "iverilog" / "verilator"。 timeout: 子进程超时秒数,默认 30。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | auto | |
| files | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |