Vivado Sim

SKILL开发规范
开发规范 未标注权限 许可证不明确

Use this skill when the user needs help with Vivado simulation strategy, flow selection, and debugging. This includes behavioral simulation (RTL functional verification), post-synthesis simulation (netlist functional verification), post-implementation timing simulation (SDF back-annotation, timing verification), Vivado Simulator xsim usage (xvlog/xvhdl/xelab/xsim three-step flow, launch_simulation Project Mode), third-party simulator integration (Questa/ModelSim/VCS/Xcelium/Riviera/ActiveHDL, compile_simlib, export_simulation), SAIF/VCD power simulation (open_saif/log_saif, open_vcd/log_vcd, read_saif + report_power), simulation netlist generation (write_verilog -mode funcsim/timesim, write_sdf), xsim debugging commands (add_force, add_wave, log_wave, add_bp, step, run, restart, get_objects, get_value), simulation properties and settings, glbl.v usage, or any question about choosing the right simulation approach for verification or power analysis.

一句话选型结论

按资料字段整理

Vivado Sim是开发规范类的 Agent Skill,安装方式:GitHub 仓库,权限级别未标注,许可证不明确,没有现成安装命令,需按说明手动放置 SKILL.md。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类开发规范 安装方式GitHub 仓库 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 fpga-agent
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

GitHub 仓库
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    按安装说明或仓库 README,把 SKILL.md 放到客户端的 skills 目录(一般一个技能一个文件夹)。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

开发规范
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方shinei-nouzen-arch仓库 fpga-agent · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式GitHub 仓库安装包 shinei-nouzen-arch/fpga-agent
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 2026-09-05
正文体量11.5 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
统一代码规范

把团队约定写成模型能执行的检查项。

做代码审查

按规范逐条检查改动。

写提交与文档规范

统一提交信息与文档模板。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 基础信息齐全,可以先按说明装一个试试。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有现成安装命令,要按安装说明或仓库 README 手动放置。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在开发规范场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
Vivado Sim当前 未标注权限 GitHub 仓库 未标注 未标注 无
Firebase auth basics 邮件管理 接触敏感数据 GitHub 仓库 89.6 万 Codex、Claude、Cursor 有
时差 联网访问 GitHub 仓库 79.8 万 Codex、Claude、Cursor 有
内存卫生 联网访问 ClawHub 市场 67.9 万 OpenClaw 有
及时的工程专家 只读 ClawHub 市场 55.8 万 OpenClaw 有
FastAPI templates 测试 联网访问 GitHub 仓库 37.2 万 Codex、Claude、Cursor 有

SKILL.md 全文

11.5 KB
模型实际读到的说明书原文,来自技能仓库

Vivado Simulation Decision Guide

Based on UG900 (v2025.2). For complete command syntax and property tables, see REFERENCE.md.

Simulation Flow Overview

RTL + Testbench ──→ Behavioral Sim (functional verification, fastest)
       ↓ synth_design
Synthesized Netlist ──→ Post-Synth Sim (synthesis correctness, optional)
       ↓ place_design + route_design
Implemented Netlist + SDF ──→ Timing Sim (timing verification, slowest)
       ↓
SAIF/VCD ──→ report_power (power analysis)

Three Simulation Stages

Stage Input Purpose Speed Accuracy
Behavioral (RTL) RTL source + TB Functional verification Fastest No timing
Post-Synthesis Synth netlist Verify synthesis correctness Medium Functional only
Post-Implementation Impl netlist + SDF Timing verification Slowest Full timing

When to Use Each Stage

  • Daily development → Behavioral sim only
  • Functional mismatch after synthesis → Post-synthesis sim to isolate
  • Timing closure verification → Post-implementation timing sim
  • Power estimation → Any stage + SAIF dump → report_power

Vivado Simulator (xsim) — Project Mode

Recommended for interactive development with Vivado GUI/project.

# Configure simulation settings
set_property -name {xsim.simulate.runtime} -value {1000ns} -objects [get_filesets sim_1]
set_property -name {xsim.simulate.log_all_signals} -value {true} -objects [get_filesets sim_1]
set_property -name {xsim.elaborate.debug_level} -value {typical} -objects [get_filesets sim_1]

# Launch behavioral simulation
launch_simulation
run 100ns
close_sim

Simulation Modes in Project Mode

launch_simulation -mode behavioral          ;# RTL sim (default)
launch_simulation -mode post-synthesis -type functional   ;# Post-synth functional
launch_simulation -mode post-synthesis -type timing       ;# Post-synth timing
launch_simulation -mode post-implementation -type functional  ;# Post-impl functional
launch_simulation -mode post-implementation -type timing      ;# Post-impl timing

Generate Scripts Without Running

launch_simulation -scripts_only             ;# Generate sim scripts only
launch_simulation -scripts_only -absolute_path  ;# With absolute paths

Vivado Simulator (xsim) — Non-Project Mode (Scripted)

Three-step flow: Compile → Elaborate → Simulate

# Step 1: Compile
exec xvlog design.v tb.v                    ;# Verilog
exec xvlog -sv design.sv                    ;# SystemVerilog
exec xvhdl design.vhd                       ;# VHDL
exec xvhdl -2008 design.vhd                 ;# VHDL-2008

# Step 2: Elaborate (link)
exec xelab -debug typical tb_top -s sim_snap

# Step 3: Simulate
exec xsim sim_snap -runall
exec xsim sim_snap -t run.tcl               ;# With TCL script
exec xsim sim_snap -gui                     ;# With GUI

xelab Debug Level Decision

Scenario Option Effect
Waveform + breakpoints -debug typical Standard debugging (recommended)
All signals observable -debug all Full visibility, slower elaboration
Fastest simulation -debug off No debug, maximum speed
Line stepping -debug line Source-level stepping

xelab Key Options

Option Purpose
-d MACRO=value Verilog `define
-i <path> Verilog include search path
-L <library> Library search order
-s <snapshot> Output snapshot name
-timescale 1ns/1ps Default timescale
-mt <N> Multi-threading (2, 4, 8, off)
-transport_int_delays Transport delay mode (timing sim)
-pulse_r 0 -pulse_e 0 Pulse rejection/error (timing sim)
-sdfroot <instance> SDF annotation root instance
-generic_top <param=val> Override top-level generics (VHDL)
-override_timeunit Override module timeunit with -timescale

xsim Runtime / Debug Commands

Command Description
run <time> Run simulation for specified time
run -all Run until $finish or breakpoint
restart Reset simulation to time 0
step / step <N> Single-step (N statements)
current_time Return current simulation time
add_force <signal> <value> [<time> <value>...] Force signal value (supports sequences)
remove_forces <signal> Remove forced values
add_wave <signal> Add signal to waveform viewer
log_wave -r / Log all signals to WDB (waveform database)
add_bp <file> <line> Add breakpoint at source line
add_bp -condition {<expr>} Conditional breakpoint
remove_bp <id> Remove breakpoint
get_objects -r * List all objects (hierarchical)
get_value <signal> Read current signal value
set_value <signal> <value> Set signal value (non-persistent)
report_values Report all signal values

add_force Examples

# Constant force
add_force clk 0
# Clock pattern: 0 at 0ns, 1 at 5ns, repeat every 10ns
add_force clk {0} {1 5ns} -repeat_every 10ns
# Reset pulse: 1 at 0ns, 0 at 100ns
add_force rst {1} {0 100ns}
# With radix
add_force -radix hex data_in 0xFF

Timing Simulation (Post-Implementation)

Netlist Generation

# Post-synthesis functional netlist
open_checkpoint post_synth.dcp
write_verilog -mode funcsim -force post_synth_func.v

# Post-implementation timing netlist + SDF
open_checkpoint post_route.dcp
write_verilog -mode timesim -sdf_anno true -force post_impl_timing.v
write_sdf -force post_impl_timing.sdf

# VHDL variants
write_vhdl -mode funcsim -force post_synth_func.vhd

write_verilog -mode Options

Mode Purpose
funcsim Functional simulation netlist (no timing)
timesim Timing simulation netlist (with SDF annotation)
design Design netlist (non-simulation)
synth_stub Synthesis stub for OOC
pin_planning I/O pin planning

SDF Back-Annotation

xelab handles SDF automatically when -sdf_anno true is used in write_verilog:

# xelab with timing simulation netlist
exec xelab -debug typical tb_top glbl \
    -transport_int_delays \
    -pulse_r 0 -pulse_e 0 \
    -s timing_sim_snap

For manual SDF specification:

exec xelab -debug typical tb_top glbl \
    -sdfroot /tb_top/uut \
    -transport_int_delays \
    -pulse_r 0 -pulse_e 0 \
    -s timing_sim_snap

Process Corner Selection

write_sdf -process_corner fast -force fast_corner.sdf   ;# Best case
write_sdf -process_corner slow -force slow_corner.sdf   ;# Worst case (default)

glbl.v Requirements

Stage glbl.v Needed? Reason
Behavioral Only if using MMCM/PLL/GT primitives Global set/reset signals
Post-Synthesis Yes Netlist references global signals
Timing Sim Required SDF annotation depends on it

Path: $XILINX_VIVADO/data/verilog/src/glbl.v

# Include glbl.v in compilation and elaboration
exec xvlog $::env(XILINX_VIVADO)/data/verilog/src/glbl.v
exec xelab tb_top glbl -debug typical -s sim_snap

Third-Party Simulator Integration

Supported Simulators

Simulator -simulator value Vendor
Questa Advanced Simulator questa Siemens EDA
ModelSim modelsim Siemens EDA
VCS vcs Synopsys
Xcelium xcelium Cadence
Riviera-PRO riviera Aldec
Active-HDL activehdl Aldec

Step 1: Compile Simulation Libraries (One-Time)

compile_simlib -simulator questa -directory /path/to/compiled_libs \
    -family all -language all

Step 2: Set Target Simulator

set_property target_simulator Questa [current_project]
# Or: ModelSim, VCS, Xcelium, Riviera, ActiveHDL

Step 3: Export Simulation Scripts

# Option A: export_simulation (flexible, supports Non-Project)
export_simulation -simulator questa -directory ./sim_scripts \
    -use_ip_compiled_libs

# Option B: launch_simulation -scripts_only (Project Mode only)
launch_simulation -scripts_only

export_simulation vs launch_simulation -scripts_only

Feature export_simulation launch_simulation -scripts_only
Custom output dir Yes Project default
Non-Project Mode Yes No
IP compiled libs -use_ip_compiled_libs Automatic
All sim types Yes Current mode only

SAIF/VCD Power Simulation

SAIF Collection (Recommended for report_power)

# During simulation (xsim)
open_saif /path/to/output.saif
log_saif [get_objects -r *]       ;# Or specific hierarchy
run 1000ns
close_saif

# Power analysis
open_checkpoint post_route.dcp
read_saif /path/to/output.saif
report_power -file power.rpt

VCD Collection

open_vcd /path/to/output.vcd
log_vcd [get_objects -r *]
run 1000ns
close_vcd

SAIF vs VCD

Feature SAIF VCD
File size Small (statistical summary) Large (full waveform)
report_power support Direct read_saif Needs conversion
Best for Vivado power analysis Third-party tools / waveform viewing
Recommended Yes (for power) When waveform needed

Simulation Properties Quick Reference

# Runtime
set_property -name {xsim.simulate.runtime} -value {1000ns} -objects [get_filesets sim_1]

# Log all signals
set_property -name {xsim.simulate.log_all_signals} -value {true} -objects [get_filesets sim_1]

# Debug level: typical | all | off
set_property -name {xsim.elaborate.debug_level} -value {typical} -objects [get_filesets sim_1]

# Additional xsim options
set_property -name {xsim.simulate.xsim.more_options} -value {-testplusarg FAST} -objects [get_filesets sim_1]

# Additional xelab options
set_property -name {xsim.elaborate.xelab.more_options} -value {-mt 4} -objects [get_filesets sim_1]

# Waveform database file
set_property -name {xsim.simulate.wdb} -value {my_sim.wdb} -objects [get_filesets sim_1]

# Target simulator
set_property target_simulator Questa [current_project]

Simulation Fileset Management

# Add simulation source
add_files -fileset sim_1 tb_top.v

# Set top module
set_property top tb_top [get_filesets sim_1]

# Set top library
set_property top_lib work [get_filesets sim_1]

# Create additional sim fileset
create_fileset -simset sim_2

Language Support

Language Standard xsim Support
Verilog IEEE 1364-2001/2005 Full
SystemVerilog IEEE 1800-2012 (partial 2017) Full
VHDL IEEE 1076-1993/2008 Full
Mixed Language Verilog/SV + VHDL Supported

常见问题

5 问
答案由本站依据条目字段整理
Vivado Sim怎么安装?

没有现成安装命令:按安装说明或仓库 README,把 SKILL.md 放进客户端的 skills 目录(一般一个技能一个文件夹)。

Vivado Sim支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

Vivado Sim权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

Vivado Sim收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

Vivado Sim用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。