使用tcl指令可以实现在vivado编译结束后播放提示音
1、新建文本文件,另存为tcl类型
编写tcl代码
set thefile "C:/Windows.old/Windows/Media/Alarm02.wav"
exec {*}[auto_execok start] "" [file nativename [file normalize $thefile]]
文件路径为音频文件的绝对路径,并且使用反斜杠“/”。
2、打开vivado设置界面
3、添加tcl文件
在tcl.post中添加tcl文件。
综合完成、布局布线完成,也已同样的方式添加提示音。