Skip to main content
Glama

set_wave_analog

Set signals to analog waveform style in Vivado, specifying min/max, interpolation, and height. Use after zoom to avoid reset.

Instructions

把信号设为模拟(Analog)波形显示(纯 Tcl 配方,实测 Vivado 2019.1 可渲染)。

本地价值(§1.3 条件2 本地知识库,三个实测静默坑):

  1. WaveformStyle 必须传 STYLE_ANALOG(带 STYLE_ 前缀);裸传 ANALOG 时 Vivado 收下 不报错但渲染器不认,只显示数字格。推翻早期"Analog 无 Tcl 接口只能 GUI 右键"的误判。

  2. get_waves 只匹配显示名(y0[15:0])/glob,直接传全路径 /tb/y0 返回空;工具自动按 DESIGN_OBJECT(全路径)/FULL_NAME/显示名解析,不命中才报 add_wave。

  3. set_wave_prop 对空对象 rc=0 静默接受(信号没 add 会伪装成功),工具先判空再 set。 wave 属性无 get 接口(get_wave_prop 不存在),无法 Tcl 读回校验,渲染请人眼确认。

⚠ 顺序硬约束:必须在 set_wave_zoom 之后调——zoom 重载(close+open wcfg)会冲掉 先设的 analog prop。 ⚠ AnalogMin/Max 必须成对显式传(贴数据范围:太宽压平、太窄削顶)。从仿真数据 自动算幅需 live 采样、数据源未定,本版本不做 auto。

Args: signals: 信号列表(短名或全路径,须已 add_wave 进波形)。 min: AnalogMin(必传,与 max 成对)。 max: AnalogMax(必传,与 min 成对)。 interp: 插值方式,白名单 LINEAR / HOLD。 height: 行高像素(存盘后在 wcfg 里叫 CellHeight)。 session_id: 目标会话 ID。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNo
minNo
heightNo
interpNoLINEAR
signalsYes
session_idNodefault

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully carries behavioral disclosure. It reveals multiple silent pitfalls: bare 'ANALOG' isn't rendered, get_waves doesn't match full paths, set_wave_prop silently succeeds on empty objects, min/max must be paired, and no Tcl readback is possible. These are crucial behaviors beyond what schema or annotations could provide.

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?

Though lengthy, the description is well-structured with bullet points and warnings. Every sentence adds local knowledge or constraints that cannot be derived from schema. It front-loads the core purpose and separates pitfalls, ordering, and parameters logically. No redundant or vague sentences.

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

Completeness5/5

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

For a six-parameter tool with high complexity and no annotations, the description covers all necessary context: ordering constraints, parameter semantics, silent failure modes, and verification limitations. The presence of an output schema means return values don't need elaboration, but the description still addresses verification by saying 'render please confirm visually'. It is fully complete for correct invocation.

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

Parameters5/5

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

Schema description coverage is 0%, and the description compensates completely. Each parameter is given meaningful semantics: signals can be short/full paths and must be added; min/max must be explicitly supplied in pairs; interp is whitelisted; height corresponds to CellHeight in wcfg; session_id targets a session. This exceeds schema's bare type definitions.

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 clearly states the tool sets signals to Analog waveform display in Vivado, with a specific verb and resource. It distinguishes itself from siblings like set_wave_zoom by focusing on analog properties rather than zoom. The added context about resolved signal names and rendering makes the purpose unmistakable.

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?

The description explicitly states the hard ordering constraint ('must be called after set_wave_zoom') and explains why, along with prerequisite signals must be added. It also notes when automatic amplitude calculation is not supported. This gives clear when-to-use context, plus a reference to a sibling tool, though it doesn't name alternatives explicitly.

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/mapleleavessssssss-wq/vivado-mcp'

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