Files
skills-win/vivado-sim-workspace/iteration-1/eval-counter/with_skill/outputs/run_sim.tcl
T
2026-05-09 01:12:34 -05:00

31 lines
780 B
Tcl
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Vivado 批处理仿真脚本 - 8位计数器
# 由 vivado-sim 技能自动生成
# 创建仿真工程
create_project -force sim_proj ./sim_proj -part xc7a200tfbg676-2
set_property simulator_language Verilog [current_project]
# 添加设计源文件
add_files -norecurse ./counter8.v
# 添加仿真文件
add_files -fileset sim_1 -norecurse ./tb_counter8.v
# 设置顶层仿真模块
set_property top tb_counter8 [get_filesets sim_1]
set_property top_lib xil_defaultlib [get_filesets sim_1]
# 设置仿真时长(100个时钟周期 × 10ns = 1000ns,留一些余量用2000ns)
set_property -name {xsim.simulate.runtime} -value {2000ns} -objects [get_filesets sim_1]
# 启动仿真
launch_simulation
# 运行仿真
run all
# 关闭仿真
close_sim
# 退出 Vivado
exit