Specifications

122 www.xilinx.com Embedded System Tools Guide (EDK 6.2i)
1-800-255-7778 UG111 (v1.4) January 30, 2004
Chapter 7: Library Generator
R
Output Files
LibGen generates directories and files in the USER_PROJECT directory. For every
processor instance in the MSS file, LibGen generates a directory with the name of the
processor instance. Within each processor instance directory, LibGen generates the
following directories and files:
include directory
The include directory contains C header files that are needed by drivers. The include file
xparameters.h is also created through LibGen in this directory. This file defines base
addresses of the peripherals in the system, #defines needed by drivers, OS’s, libraries and
user programs, as well as function prototypes. The MDD file for each driver specifies the
definitions that must be customized for each peripheral that uses the driver. Refer to
Chapter 21, “Microprocessor Driver Definition (MDD)” for more information. The MLD
file for each OS and library specifies the definitions that must be customized. Refer to
Chapter 20, “Microprocessor Library Definition (MLD)” for more information.
lib directory
The lib directory contains libc.a, libm.a, and libxil.a libraries. The libxil
library contains driver functions that the particular processor can access. More information
on the libraries can be found in the “Xilinx Microkernel (XMK)” chapter in the EDK OS and
Libraries Reference Guide.
libsrc directory
The libsrc directory contains intermediate files and makefiles that are needed to compile
the OS’s, libraries, and drivers. The directory contains peripheral-specific driver files, BSP
files for the OS, and library files that are copied from the EDK and user driver/OS/library
Figure 7-2: Directory Structure of Drivers, OS’s and Libraries
X10134
<Library Name>
<my_driver>
pcores
src data
.c files .h files
MDD Tcl
drivers
<my_driver>
src data
.c files .h files
MDD Tcl
bsp
<my_os>
src data
.c files .h files
MLD Tcl
sw_services
<my_library>
src data
.c files .h files
MLD Tcl