当前位置: 首页 > news >正文

创建带Axi_Lite接口的IP核与AXI Interconnect(PG059)

        AXI Interconnect互连内核将一个或多个 AXI 内存映射主设备连接到一个或多个内存映射从设备。

        参考小梅哥文档。

/**************************** 类型定义 ****************** **********/ 
/** * * 将值写入 AXI_REG_LIST 寄存器。执行 32 位写入。
* 如果组件以较小的宽度实现,则仅写入最不重要的数据。
* * @param BaseAddress 是 AXI_REG_LIST 设备的基地址。
* @param RegOffset 是要写入的寄存器距基址的偏移量。
* @param Data 是写入寄存器的数据。
* * @返回无。
* * @note 
* C 风格签名: 
* void AXI_REG_LIST_mWriteReg(u32 BaseAddress, unsigned RegOffset, u32 Data) * */
/**************************** Type Definitions *****************************/
/**** Write a value to a AXI_REG_LIST register. A 32 bit write is performed.* If the component is implemented in a smaller width, only the least* significant data is written.** @param   BaseAddress is the base address of the AXI_REG_LISTdevice.* @param   RegOffset is the register offset from the base to write to.* @param   Data is the data written to the register.** @return  None.** @note* C-style signature:* 	void AXI_REG_LIST_mWriteReg(u32 BaseAddress, unsigned RegOffset, u32 Data)**/
#define AXI_REG_LIST_mWriteReg(BaseAddress, RegOffset, Data) \Xil_Out32((BaseAddress) + (RegOffset), (u32)(Data))


      

/** * * 从 AXI_REG_LIST 寄存器读取值。执行 32 位读取。
* 如果组件以较小的宽度实现,则仅从寄存器中读取最低有效数据。最重要的数据 
* 将被读取为 0。
* 
* @param BaseAddress 是 AXI_REG_LIST 设备的基地址。
* @param RegOffset 是要写入的寄存器距基址的偏移量。
* * @return Data 是来自寄存器的数据。
* * @note * C 风格签名: 
* u32 AXI_REG_LIST_mReadReg(u32 BaseAddress, unsigned RegOffset) * 
*/
/**** Read a value from a AXI_REG_LIST register. A 32 bit read is performed.* If the component is implemented in a smaller width, only the least* significant data is read from the register. The most significant data* will be read as 0.** @param   BaseAddress is the base address of the AXI_REG_LIST device.* @param   RegOffset is the register offset from the base to write to.** @return  Data is the data from the register.** @note* C-style signature:* 	u32 AXI_REG_LIST_mReadReg(u32 BaseAddress, unsigned RegOffset)**/
#define AXI_REG_LIST_mReadReg(BaseAddress, RegOffset) \Xil_In32((BaseAddress) + (RegOffset))

http://www.lryc.cn/news/198214.html

相关文章:

  • 快速解决 Resource not accessible by integration
  • 港联证券:资金融通构成强支撑 “一带一路”金融合作开新局
  • mysql varchar int
  • 阿里云/腾讯云国际站账号:私服游戏服务器:阿里云CTO周靖人:AI时代,为什么阿里云一定要做开源
  • 搭建Pytorch的GPU环境超详细
  • ppt录屏怎么导出来?学会这个,让分享更容易
  • 【Linux笔记】Linux基础权限
  • 汽车屏类产品(三):抬头显示Head-Up Display(HUD)
  • vue2技能树(1)
  • Kotlin中的选择结构语句
  • 【AIFEM案例操作】压力容器强度分析
  • Hadoop3教程(十八):MapReduce之MapJoin案例分析
  • SOAR安全事件编排自动化响应-安全运营实战
  • 连锁药店的自有品牌之争:老百姓大药房能否突围?
  • 智能台灯语音控制丨解放双手
  • 网络库OKHTTP(2)面试题
  • 探索Java NIO:究竟在哪些领域能大显身手?揭秘原理、应用场景与官方示例代码
  • 论文阅读 Memory Enhanced Global-Local Aggregation for Video Object Detection
  • Java 常用类(包装类)
  • ES|QL:Elasticsearch的 新一代查询语言
  • C语言实现句子中的单词颠倒排序
  • MySQL学习(八)——锁
  • 让iPhone用电脑的网络上网
  • ThreeJS-3D教学十-有宽度的line
  • 安装Elasticsearch步骤(包含遇到的问题及解决方案)
  • 网络编程面试笔试真题
  • MySQL官方文档如何查看,MySQL中文文档
  • 第七章:最新版零基础学习 PYTHON 教程—Python 列表(第四节 -如何在 Python 中查找列表的长度)
  • XPS虽没流行,但还在使用!在Windows 10中打开XPS文件的最佳方法
  • 23 种设计模式详解(C#案例)