Specifications

298 www.xilinx.com Embedded System Tools Guide (EDK 6.2i)
1-800-255-7778 UG111 (v1.4) January 30, 2004
Chapter 21: Microprocessor Driver Definition (MDD)
R
x Data Definition file - The MDD file (named as <driver_name>_v2_1_0.mdd) contains
the configurable parameters . A detailed description of the various parameters and
the MDD format is described in section“MDD Parameter Description,” in this chapter.
x Data Generation file - The second file (named as <driver_name>_v2_1_0.tcl, with the
filename being the same as the mdd filename) uses the parameters configured in the
MSS file for the driver to generate data. Data generated includes but not limited to
generation of header files, C files, running DRCs for the driver 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 MDD file), generate (Libgen defined procedure) called after driver files
are copied, post_generate (Libgen defined procedure) called after generate has been
called on all drivers and libraries, execs_generate (Libgen defined procedure) called
after the libraries and drivers have been generated. For more information on the
working of libgen tool refer to Chapter 7, “Library Generator.”
Note that a driver need not have the data generation file (Tcl file).
MDD Format Specification
MDD format specification involves the MDD file Format specification and the Tcl file
Format specification. These are described below.
MDD File Format Specifcation
MDD file format specification involves description of parameters defined in the Parameter
Description section.
Parameter Description Section
This data section describes configurable parameters in a driver. The format used to
describe these parameters is discussed in section “MDD Parameter Description,”of this
chapter.
Tcl File Format Specification
Each driver has a Tcl file associated with the MDD file. This Tcl file has the following
sections :
DRC Section
This section contains Tcl routines which validate the driver 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 driver parameters
Example
This section explains the MDD format through an example MDD file and its corresponding
Tcl file.