create_generated_clock的使用问题

对于-master_clock,解释如下:

-master_clock - (Optional) If there are multiple clocks found on the source pin or port, the specified clock object is the one to use as the master for the generated clock object.

Note: -add and -name options must be specified with -master_clock.

比如说,两个时钟经过一个MUX,输出到逻辑做分频,那么分频时钟的创建需要用-add -master_clock来指定是源自于哪一个时钟。

-add 使用场景:对同一个对象要加多个不同的时钟, 比如一个200Mhz, 一个400Mhz时钟需要同时加在同一个pin上,那么就要加-add, 这样两个时钟可以同时生效,否则前一个时钟会被覆盖掉.

以下图片capture from https://forums.xilinx.com/t5/Vivado/create-generated-clock%E7%9A%84%E4%BD%BF%E7%94%A8%E9%97%AE%E9%A2%98/td-p/1051144

你可能感兴趣的:(芯片后端)