Vivado中XDC约束文件支持if和for的方法

通常来说,XDC 约束文件是下列 2 项的集合:

  • Industry standard Synopsys Design Constraints (SDC version 1.9)
  • Xilinx proprietary physical constraints

在 Vivado 中,XDC 约束文件和 tcl 脚本语言的解释器并不相同,前者仅是后者的一个子集。下面是 XDC 约束文件中支持的 TCL 脚本语言。

Vivado中XDC约束文件支持if和for的方法

根据上图的内容,可以看出 XDC 约束文件并不直接支持 if 条件结构和 for 循环结构。如何才能使约束文件支持这两种结构呢?

参考文章及 ug903, page 6-7 给出了 3 种解决方法:

  1. Run the source command to explicitly source the Tcl script at any point in the flow.
  2. Add the Tcl scripts to one of your project constraint sets.
  3. Define Tcl Hook Scripts by setting the tcl.pre or tcl.post option, which allows the custom Tcl script to be run prior to or after synthesis or implementation design runs.

参考文章:

扫码关注尚为网微信公众号

尚为网微信公众号
每天学习电路设计嵌入式系统的专业知识,关注一波,没准就用上了。

原创文章,作者:sunev,如若转载,请注明出处:https://www.sunev.cn/embedded/1389.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2024年9月19日 21:19
下一篇 2023年5月10日 16:13

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注