当前位置:   article > 正文

XPM_CDC_SINGLE(UG974)

ug974

Parameterized Macro: Single-bit Synchronizer(参数化宏:单比特同步器)

  • MACRO_GROUP: XPM
  • MACRO_SUBGROUP: XPM_CDC
  • Families: UltraScale, UltraScale+

1、 Introduction(介绍)

        此宏将一个一位信号从源时钟域同步到目标时钟域。为了正确操作,输入数据必须由目标时钟采样两次或两次以上。您可以定义同步器中使用的寄存器级数。可选的输入寄存器可以用于在源时钟域中的输入被同步之前将其寄存。还可以启用仿真特性来生成消息,以报告宏的任何潜在滥用。

2、Port Descriptions(端口描述)

端口方向宽度时钟域敏感类型未使用时处理方式功能
dst_clk输入1NA边沿敏感激活目的时钟域的时钟信号
dest_out输出1dst_clkNA激活要被同步到目的时钟的信号,为寄存器类型
src_clk1NA边沿敏感0当SRC_INPUT_REG = 1.时,为src_in的输入时钟,SRC_INPUT_REG = 0时未使用
src_in1src_clkNA激活要被同步到dest_clk时钟域的输入信号

3、Design Entry Method(设计输入方法)
 

实例化
引用
IP和IP Intergator Catalog

4、Available Attributes(可用属性)
 

属性类型允许值默认值描述
DEST_SYNC_FF十进制2—104用于同步目标时钟域中的信号的寄存器级数。
INIT_SYNC_FF十进制0,10

0-禁用同步寄存器上的行为模拟初始化值。

1-在同步寄存器上启用行为模拟初始化值。

SIM_ASSERT_CHK十进制0,10

0-禁用模拟消息报告。与潜在滥用相关的信息将不会被报告。

1-启用模拟消息报告。将报告与潜在滥用有关的信息。

SRC_INPUT_REG十进制1,01

0-不注册输入(src_in)

1-使用src_clk注册输入(src_in)一次

5、VHDL Instantiation Template(VHDL实例化模板)

除非它们已经存在,否则复制以下两个语句并将它们粘贴在实体声明之前。

  1. Library xpm;
  2. use xpm.vcomponents.all;
  1. -- xpm_cdc_single: Single-bit Synchronizer
  2. -- Xilinx Parameterized Macro, version 2023.1
  3. xpm_cdc_single_inst : xpm_cdc_single
  4. generic map (
  5. DEST_SYNC_FF => 4, -- DECIMAL; range: 2-10
  6. INIT_SYNC_FF => 0, -- DECIMAL; 0=disable simulation init values, 1=enable simulation init values
  7. SIM_ASSERT_CHK => 0, -- DECIMAL; 0=disable simulation messages, 1=enable simulation messages
  8. SRC_INPUT_REG => 1 -- DECIMAL; 0=do not register input, 1=register input
  9. )
  10. port map (
  11. dest_out => dest_out, -- 1-bit output: src_in synchronized to the destination clock domain. This output
  12. -- is registered.
  13. dest_clk => dest_clk, -- 1-bit input: Clock signal for the destination clock domain.
  14. src_clk => src_clk, -- 1-bit input: optional; required when SRC_INPUT_REG = 1
  15. src_in => src_in -- 1-bit input: Input signal to be synchronized to dest_clk domain.
  16. );
  17. -- End of xpm_cdc_single_inst instantiation

6、Verilog Instantiation Template

  1. // xpm_cdc_single: Single-bit Synchronizer
  2. // Xilinx Parameterized Macro, version 2023.1
  3. xpm_cdc_single #(
  4. .DEST_SYNC_FF(4), // DECIMAL; range: 2-10
  5. .INIT_SYNC_FF(0), // DECIMAL; 0=disable simulation init values, 1=enable simulation init values
  6. .SIM_ASSERT_CHK(0), // DECIMAL; 0=disable simulation messages, 1=enable simulation messages
  7. .SRC_INPUT_REG(1) // DECIMAL; 0=do not register input, 1=register input
  8. )
  9. xpm_cdc_single_inst (
  10. .dest_out(dest_out), // 1-bit output: src_in synchronized to the destination clock domain. This output is
  11. // registered.
  12. .dest_clk(dest_clk), // 1-bit input: Clock signal for the destination clock domain.
  13. .src_clk(src_clk), // 1-bit input: optional; required when SRC_INPUT_REG = 1
  14. .src_in(src_in) // 1-bit input: Input signal to be synchronized to dest_clk domain.
  15. );
  16. // End of xpm_cdc_single_inst instantiation



 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/天景科技苑/article/detail/963005
推荐阅读
相关标签
  

闽ICP备14008679号