AR# 54352

|

14.4 - XPS -SDK - IP created in CIP (Create or Import Peripheral) wizard in XPS is failing in SDK libgen as xio.h and xbasic_types.h cannot be found

描述

A problem occurs if a simple IP is created with an AXI interface with register access and soft reset, and if the "create a sample driver" box is ticked in the CIP wizard. 

If this project is exported to SDK with the driver included in the repository, or using the example code provided in the driver, the SDK will fail in libgen noting that the xio.h or the xbasic_types.h cannot be found, or that the <IP_NAME>_USER_NUM_REG cannot be defined.

How can I fix this?

解决方案

This is a known issue. 

To fix the issue, open the driver source files created in the CIP wizard seen below;


<IP_NAME>.h

Change the following:

#include "xio.h"
#include "xbasic_types.h"

to:

#include "xil_io.h"
#include "xil_types.h"


<IP_NAME>selftest.c

Change the following:

#include "xio.h"

to:

#include "xil_io.h"
#include "xil_types.h"

and add:

#define <IP_NAME>_USER_TEST_NAME <IP_NAME>_AXI_LITE_USER_NUM_REG


Note: When adding custom drivers to SDK, the hierarchy will need to look like:
 
<Project Directory>\drivers\MyProcessorIPLib\drivers\<IP_NAME>_v1_00_a
 
Then, in Xilinx Tools -> Repositories, add and point to the drivers folder (highlighted).
AR# 54352
日期 10/14/2014
状态 Active
Type 综合文章
器件
Tools More Less
People Also Viewed