Specifications

304 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
If permit = none, then the category is always active. This property is still experimental.
Tools do not perform any action for this property for EDK6.1 release.
Array
BEGIN ARRAY <array name>
PROPERTY desc = <array description> ;
PROPERTY size = <size of the array>;
PROPERTY default = <List of Values for each element based on the size
of the array>
# array field description as parameters
PARAM name = <name of parameter>, desc = "description of param", type
= <type of param>, default = <default value>
.....
END ARRAY
Array can have any number of PARAM’s and only PARAM’s. It cannot have CATEGORY
as one of the field of an array element. Size of the array can be defined as one of the
PROPERTY of the Array. An array with with default values specified in default property,
leads to its size property being initialized to the number of values. If there is no size
property defined, a size property is created before initializing it with the default number of
elements. Each parameter in the array can have a default value. In case where size is
defined with an integer value, an array of size elements would be created wherein the
value of each element being the default value of each of the parameter.
Design Rule Check (DRC) Section
proc mydrc { handle } {
}
DRC function could be any Tcl code which checks the user parameters for correctness. The
drc procedures can access (read-only) the Platform Specification Format database (built by
the libgen tool using the MHS and the MSS files) to read the parameter values set by the
user. The "handle" is a handle to the current driver in the database. The drc procedure can
get the driver parameters from this handle. It can also get any other parameter from the
database, by first requesting for a handle and using the handle to get the parameters.
For Errors, drc procedures would call the Tcl error command ’error "error msg"’, which will
be displayed to the user in an error Dialog box.
For Warnings, drc procedures return a string value which can be printed on the console.
On Success, drc procedures just return without any value.
Driver Generation Section (Generate)
proc mygenerate { handle } {
}
generate could be any Tcl code which reads the user parameters and generates
configuration files for the driver. The configuration files can be C files, Header files,
Makefiles, etc. The generate procedures can access (read-only) thePlatform Specification
Format database (built by the libgen tool using the MHS and the MSS files) to read the
parameter values of the driver set by the user. The "handle" is a handle to the current driver
in the database. The generate procedure can get the driver parameters from this handle. It