凡亿教育-迪丽热巴
凡事用心,一起进步
打开APP
公司名片
凡亿专栏 | Xilinx源语(Primitives)和宏(Macros)
Xilinx源语(Primitives)和宏(Macros)

源语(Primitives)-Xilinx库中最简单的设计元素。Primitives 基元是设计元素“原子”。Xilinx原语的示例包括简单缓冲区BUF和带有时钟使能和清除功能的D触发器FDCE。
宏(Macros)-Xilinx库的设计元素“分子”。可以从设计元素原语或宏创建宏。例如,FD4CE触发器宏是4个FDCE原语的组合。

1源语分类

Xilinx的原语分为10类,包括:计算组件,IO端口组件,寄存器/锁存器,时钟组件,处理器组件,移位寄存器,配置和检测组件,RAM/ROM组件,Slice/CLB组件,G-tranceiver。具体原语资源更详尽描述请参考文档UG799以及UG768。

2源语调用

1>打开PROJECT MANAGER-->Language Templates

68f2678168d47f8e2d2621c47b1fbf.jpg

2>语言模板如下图5大部分

188da9b5f3dead2d4462b046528833.jpg

3>选择相应的器件类型和模块组件。
2ba9444114f7fd7b1a0ae8833fa6c6.jpg

4>BUFG示例
abe1026cc6206fa98ad73de2c265bd.jpg


//    BUFG     : In order to incorporate this function into the design,
//   Verilog   : the following instance declaration needs to be placed
//  instance   : in the body of the design code.  The instance name
// declaration : (BUFG_inst) and/or the port declarations within the
//    code     : parenthesis may be changed to properly reference and
//             : connect this function to the design.  All inputs
//             : and outputs must be connected.

//  <-----cut code="" below="" this="" line----="">

// BUFG: Global Clock Simple Buffer
//       Kintex-7
// Xilinx HDL Language Template, version 2019.1

  BUFG BUFG_inst (
.O(O), // 1-bit output: Clock output
.I(I)  // 1-bit input: Clock input
);

// End of BUFG_inst instantiation
3 BUFG

Primitive: Global Clock Simple Buffer
b49494cca6589bbd3f286fb8bcde6c.jpg
介绍:
该设计元素是一个高扇出缓冲器,可将信号连接到全局路由资源,以实现信号的低偏斜分布。BUFG通常用于时钟网络以及其他高扇出网络,如置位/复位和时钟使能。
端口描述:

1ce7cc40972708b3fb575fafebbffd.jpg

声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表凡亿课堂立场。文章及其配图仅供工程师学习之用,如有内容图片侵权或者其他问题,请联系本站作侵删。
相关阅读
进入分区查看更多精彩内容>
精彩评论

暂无评论