vivado-constraints-authoring

vivado-constraints-authoring is a skill for Claude Code, Codex from mapleleavessssssss-wq/vivado-mcp. It costs 66 tokens per session (1,025 once invoked), scanned A, original, Apache-2.0.

A Vivado workflow for writing and reviewing XDC constraints for FPGA clocks, I/O timing, and timing exceptions. XDC is the constraint-file format that tells Vivado about clocks, pins, delays, and allowed timing relationships.

In plain words
What is it for?
It helps create or audit primary and generated clocks, input and output delays, clock relationships, false paths, multicycle paths, and other XDC rules.
Why use it?
Incorrect or guessed constraints can hide real timing failures or apply to the wrong design objects. This workflow checks the project, confirmed board and interface details, and constraint coverage before changes are written.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps create or audit primary and generated clocks, input and output delays, clock relationships, false paths, multicycle paths, and other XDC rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mapleleavessssssss-wq/vivado-mcp/vivado-constraints-authoring
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mapleleavessssssss-wq/vivado-mcp --skill vivado-constraints-authoring
Clone the repo
git clone --depth 1 https://github.com/mapleleavessssssss-wq/vivado-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vivado-constraints-authoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/mapleleavessssssss-wq/vivado-mcp/vivado-constraints-authoring/github.svg)](https://agentmods.dev/skills/mapleleavessssssss-wq/vivado-mcp/vivado-constraints-authoring)
Your own site
<a href="https://agentmods.dev/skills/mapleleavessssssss-wq/vivado-mcp/vivado-constraints-authoring"><img src="https://agentmods.dev/badge/skills/mapleleavessssssss-wq/vivado-mcp/vivado-constraints-authoring/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vivado-constraints-authoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/mapleleavessssssss-wq/vivado-mcp/vivado-constraints-authoring"><img src="https://agentmods.dev/badge/skills/mapleleavessssssss-wq/vivado-mcp/vivado-constraints-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,025 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.01025
Opus 5.5 $0.00026 $0.00410
Sonnet 5.5 $0.00013 $0.00205
Haiku 4.5 $0.00007 $0.00103

Measured 23d ago against content hash 8f9011d48258, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vivado-constraints-authoring scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/vivado-constraints-authoring/SKILL.md · 48 lines

What it actually says

Vivado XDC 编写与覆盖核对

可用入口:get_project_info、xdc_lint、get_timing_report、get_cdc_report、run_tcl、safe_tcl。

用户要求编写或修复时,在已有授权范围内编辑工程约束;只要求检查时交付审查结果。保留原有接口、器件和时序意图。没有板级资料时可以分析时钟与对象,不能猜 PACKAGE_PIN、IOSTANDARD 或外设延迟。

补齐建立约束的信息

核对工程 top、器件、已启用 XDC/fileset、处理顺序、IP 自带约束,以及接口参考时钟和同步关系。输入包括:primary clock 周期/波形、generated clock 源与变换、外设 clock-to-out/setup/hold、板级数据/时钟延迟差、引脚与电气标准。

缺参数时列出受影响路径与最小缺失输入,继续检查其他部分。不能把未知 -min/-max 写成 0,也不能把内部时钟频率当成外部接口的完整预算。

get_project_info(session_id="design")
xdc_lint(session_id="design")
run_tcl(command="report_clocks -return_string", session_id="design")

xdc_lint 是静态预检;报告没有打开设计是阶段限制。对象、时钟关系与时序覆盖须在合适的已展开/综合设计上核对,不能只凭静态 lint 通过作结论。

编写与验证

  1. primary clock 绑定真实输入对象,周期与波形来自已确认规格。generated clock 绑定实际 source/target,记录分频、倍频、相位;核对 IP 自动生成时钟,避免重复约束或把相关时钟定义成独立 primary clock。
  2. 分别推导 I/O 的 -min 和 -max,明确参考边沿、外设参数及板级差分延迟的符号。输出 hold 可能对应负 output delay,不能取绝对值“修正”。DDR/双边沿接口分别覆盖边沿并核对 -add_delay,不套单边沿模板。
  3. 写入前用 get_ports / get_pins / get_clocks 核对目标对象与数量;处理空集合、通配符误匹配和重复时钟。参数经 safe_tcl 传递;“命令没报错”不代表对象都正确。
  4. 例外逐条绑定功能证据。异步 clock group 与 false path 会覆盖重叠路径的 max delay;multicycle 同时影响 setup/hold,须按真实协议预算核对二者,不能只放宽 setup。总线 skew 独立验证。
  5. 修订写入工程实际 XDC,确认属于已启用的目标 fileset;只设置会话属性不构成可重建交付。运行受影响阶段后重读报告。

固定只读命令示例;版本选项以当前 Vivado help 与实际返回为准:

run_tcl(command="check_timing -verbose", session_id="design")
run_tcl(command="report_clock_interaction -return_string", session_id="design")
run_tcl(command="report_exceptions -return_string", session_id="design")
get_timing_report(session_id="design", output_format="json")

覆盖与完成条件

检查 no-clock、multiple-clock、未约束内部端点、缺 I/O delay、无效或被覆盖的 exceptions;跨域传输用 get_cdc_report 核对结构和协议。bus skew 单独取得 report_bus_skew。版本不支持检查时保留原错误并标记未验证,不把失败查询当零问题。

交付约束的参数依据、精确对象、文件与同条件复测。区分“XDC 已写入”“覆盖已核对”和“实现满足时序”:完整签核还需当前 post-route setup/hold/pulse-width、DRC/methodology 及适用 CDC。不得降低频率、删约束或隐藏真实违例制造通过;两轮无改善时重查假设。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago First seen · 48 lines · 66 tokens per session scan A 8f9011d48258

Subscribe to this mod's changes

vivado-constraints-authoring is a skill published in the GitHub repository mapleleavessssssss-wq/vivado-mcp (157 stars, last pushed 24d ago), licensed Apache-2.0. It adds 66 tokens to every session and 1,025 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

Other skills, from other repositories

readable-verilog-generator

Use when creating, writing, reviewing, annotating, repairing, refactoring, or validating readable Verilog RTL, including synthesizable Verilog-2001 .v files, existing-RTL analysis, semantic comment annotation, testbench scaffold planning, ASIC-quality review, local or remote Vivado/xsim validation, evidence-backed…

Eriemon/verilog-generator · 77 tokens

readable-hls-generator

Use when you need to create, write, review, annotate, or validate readable HLS, Vitis HLS, high-level synthesis, or HLS debug workflows.

Eriemon/hls-generator · 40 tokens

hsb-ip-packetizer

Choose or explain HSB Sensor RX packetizer fields for HOLOLINKdef.svh. Do not use for full defs, validation, or runtime APB programming.

NVIDIA/skills · 40 tokens

hsb-ip-create-top

Create or explain fixed-format HSB FPGAtop.sv wrappers from validated HOLOLINKdef.svh files. Do not use for def generation or validation.

NVIDIA/skills · 37 tokens

hsb-ip-def

Generate, validate, compare, or explain HSB HOLOLINKdef.svh macros. Do not use for FPGAtop.sv wrappers or packetizer-only derivation. Generation runs bundled Python scripts locally through shell commands and writes validated .svh output files after user-confirmed paths.

NVIDIA/skills · 62 tokens

kicad

Analyze KiCad projects and PDF schematics: schematics, PCB layouts, Gerbers, footprints, symbols, netlists, and design rules. Reviews designs for bugs, traces nets, cross-references schematic to PCB, extracts BOM data, checks DRC/ERC, DFM, power trees, and regulator circuits. Every finding carries a confidence label…

aklofas/kicad-happy · 240 tokens