Skip to main content
Glama

ModelSim 通用 do 脚本直通 (vsim -c)

fpga_msim_do

Run arbitrary ModelSim do/Tcl scripts in headless vsim -c mode, enabling coverage, UVM, waveform capture, and custom run control with automatic quit to prevent hangs.

Instructions

对 vsim -c 跑任意 do/Tcl,覆盖长尾:coverage(coverage save/report)、force/examine、add wave、UVM(+UVM_TESTNAME)、WLF 分析、自定义 run 控制等。强制 headless(-c)+末尾自动 quit -f(防挂)。纯仿真脚本自由跑;含可触达宿主的命令(Tcl exec / file delete|rename|copy|mkdir / open 写)需 confirm:true(仿 fpga_cdt 写器件护栏)。可给 top 让工具 vsim .,或在脚本内自行 vsim/vlog/vcom。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
libNo库名,默认 work(仅 top 给定时用)
topNo可选:给定则 vsim <lib>.<top>;省略则脚本需自行 vsim
hostNo远程执行设备 id(hosts.<id>.modelsim.home;省略=本机)。远程时把 workdir 顶层源文件浅推到该设备临时目录后跑 vsim -do(do 宜自包含/引用已 stage 的文件)。
detailNo返回粒度,默认 summary
confirmNo脚本含可触达宿主的命令(exec/文件写)时必须 true;纯仿真脚本无需
workdirYes工作目录绝对路径(cwd;通常含已编译的库或先用 fpga_msim_compile)
commandsNodo 命令(每行一条);与 doScript 二选一
doScriptNo完整 do/Tcl 脚本(与 commands 二选一)
vsimArgsNo追加给 vsim 的参数,如 -coverage、-gG=1、+UVM_TESTNAME=test
timeoutSecNo超时秒数,默认 300
Behavior5/5

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

No annotations are provided, so the description carries the full burden. It clearly discloses forced headless mode, automatic quit -f to prevent hangs, the confirm guard for host-reaching commands, remote staging behavior, and the top-vs-script-driven vsim modes. This is strong transparency for an arbitrary-script execution tool.

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

Conciseness4/5

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

The description is dense but purposeful, front-loading the purpose and then grouping execution safety and invocation modes. Parentheticals make it a bit packed, but every clause contributes.

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?

Given 10 parameters, no output schema, and many siblings, the description covers core invocation modes, safety, and remote behavior well. It could go further on return granularity and failure behavior, but it is sufficient for correct selection and invocation.

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

Parameters4/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 operational meaning for confirm, the top/lib relationship, remote host staging, and vsimArgs examples. It does not define summary vs full, but that is minor given the rich schema.

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?

States a specific action: run arbitrary do/Tcl scripts through vsim -c, with concrete examples of covered use cases. The '通用/长尾' framing distinguishes it from more specialized sibling tools.

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

Usage Guidelines4/5

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

Gives clear context for when to use the tool: long-tail do/Tcl workflows covering coverage, UVM, WLF, force/examine, and custom run control. It also specifies when confirm:true is required. It does not explicitly name sibling alternatives like fpga_msim_sim or fpga_msim_compile, but the niche is clear.

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