The base and high address of the custom IP are not correctly reflected in xparameters.h in SDK

This issue has been observed in 2015.3, 2015.4, and 2015.4.1 builds of Vivado.

When you create and add a Custom AXI Peripheral, the xparameters.h file which defines the base and high address of the custom IP peripheral is incorrect in SDK.

 

For a Zynq project, it defines the address range as complete Zynq address space and not the one you have defined in the Vivado Address Editor.

For Example:

/******************************************************************/
/* Definitions for driver MYIP */
#define XPAR_MYIP_NUM_INSTANCES 1
/* Definitions for peripheral MYIP_0 */
#define XPAR_MYIP_0_DEVICE_ID 0
#define XPAR_MYIP_0_S00_AXI_BASEADDR 0xFFFFFFFF
#define XPAR_MYIP_0_S00_AXI_HIGHADDR 0x00000000

/******************************************************************/
However in 2015.2 this was not the case; the address was correctly defined as taken from the hardware handoff from vivado:
/******************************************************************/
/* Definitions for driver MYIP */
#define XPAR_MYIP_NUM_INSTANCES 1
/* Definitions for peripheral MYIP_0 */
#define XPAR_MYIP_0_DEVICE_ID 0
#define XPAR_MYIP_0_S00_AXI_BASEADDR 0x43C00000
#define XPAR_MYIP_0_S00_AXI_HIGHADDR 0x43C0FFFF

/******************************************************************/

解决方案

This is a known issue. The BASEADDR and HIGHADDR values of the Custom AXI Peripheral as defined in the Vivado Address Editor is not properly propagated to the xparameters.h file from the .hdf file.

It is planned to be fixed in 2016.1 release.

Work-arounds:

1. Make the changes manually in the main() file and add the BASEADDR and HIGHADDR values as required. This is required as changes to xparameters.h get overwritten if the BSP is re-built.

#define XPAR_MYIP_0_S00_AXI_BASEADDR 0x43C00000
#define XPAR_MYIP_0_S00_AXI_HIGHADDR 0x43C0FFFF

2. Create the custom IP in 2015.2/2015.1 Vivado builds and import it in the latest builds. In that case the Address values are also properly propagated to xparameters.h.

转载于:https://www.cnblogs.com/hcr1995/p/9952396.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值