Specifications
Embedded System Tools Guide (EDK 6.2i) www.xilinx.com 301
UG111 (v1.4) January 30, 2004 1-800-255-7778
MDD Parameter Description
R
libgen for uartlite driver while running DRCs for drivers. The generate routine generates
constants in a header file and a c file for uartlite driver based on the driver definition
segment in the MSS file.
proc uartlite_drc {drv_handle} {
puts “UartLite DRC”
}
proc generate {drv_handle} {
set level [xget_value $drv_handle "PARAMETER" "level"]
if {$level == 0} {
xdefine_include_file $drv_handle "xparameters.h" "XUartLite"
"NUM_INSTANCES" "C_BASEADDR" "C_HIGHADDR"
}
if {$level == 1} {
xdefine_include_file $drv_handle "xparameters.h" "XUartLite"
"NUM_INSTANCES" "C_BASEADDR" "C_HIGHADDR" "DEVICE_ID" "C_BAUDRATE"
"C_USE_PARITY" "C_ODD_PARITY"
xdefine_config_file $drv_handle "xuartlite_g.c" "XUartLite"
"DEVICE_ID" "C_BASEADDR" "C_BAUDRATE" "C_USE_PARITY" "C_ODD_PARITY"
}
}
MDD Parameter Description
This section gives a detailed description of the constructs used in the MDD file.
Conventions
[] - denote optional values.
<> - Value substituted by the MDD writer.
Comments
Comments can be specified anywhere in the file. A ’#’ character denotes the beginning of a
comment and all characters after the ’#’ till the end of the line are ignored. All white spaces
are also ignored and semi colon with carriage returns act as a sentence delimiter.
Driver Definition
The driver section includes driver’s name, options, dependencies and other global
parameters.
Syntax:
OPTION psf_version = <psf version number>
BEGIN DRIVER <driver name>
[OPTION drc = <global drc name>]
[OPTION depends = <list of directories>]
[OPTION help = <help file>]
[OPTION requires_interface = <list of interface names>]
PARAM <parameter description>
[BEGIN BLOCK,dep = <condition>
.......
END BLOCK]










