Specifications

288 www.xilinx.com Embedded System Tools Guide (EDK 6.2i)
1-800-255-7778 UG111 (v1.4) January 30, 2004
Chapter 20: Microprocessor Library Definition (MLD)
R
x Data Definition file - The MLD file (named as <library_name>_v2_1_0.mld or
<os_name>_v2_1_0.mld) contains the configurable parameters . A detailed
description of the various parameters and the MLD format is described in
section“MLD Parameter Description Section” in this chapter.
x Data Generation file - The second file (named as <library_name>_v2_1_0.tcl or
<os_name>_v2_1_0.tcl, with the filename being the same as the mld filename) uses
the parameters configured in the MSS file for the OS/library to generate data. Data
generated includes but not limited to generation of header files, C files, running DRCs
for the OS/library and generating executables. The Tcl file includes procedures that
are called by libgen tool at various stages of its execution. Various procedures in a Tcl
file includes DRC (name of DRC given in the MLD file), generate (libgen defined
procedure) called after OS/library files are copied, post_generate (libgen defined
procedure) called after generate has been called on all OS’es, drivers and libraries,
execs_generate (libgen defined procedure) called after the BSP’s, libraries and drivers
have been generated. For more information on the working of libgen tool refer to
Chapter 7, “Library Generator.”
Note that a OS/library need not have the data generation file (Tcl file).
MLD Format Specification
MLD format specification involves the MLD file Format specification and the Tcl file
Format specification. These are described below.
MLD File Format Specifcation
MLD file format specification involves description of parameters defined in the Parameter
Description section.
Parameter Description Section
This data section describes configurable parameters in a OS/library. The format used to
describe this section is discussed in section “MLD Parameter Description Section”of this
chapter.
Tcl File Format Specification
Each OS/library has a Tcl file associated with the MLD file. This Tcl file has the following
sections :
DRC Section
This section contains Tcl routines which validate the OS/library parameters provided by
the user for consistency.
Generation Section
This section contains Tcl routines which generate the configuration header and ’C’ files
based on the library parameters