MLD Library Definition Files - 2022.2 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
UG1400
Release Date
2023-01-02
Version
2022.2 English

Library Definition involves defining Data Definition (MLD) and a Data Generation (Tcl) files.

Data Definition File

The MLD file (named as <library_name>.mld or <os_name>.mld ) contains the configurable parameters. A detailed description of the various parameters and the MLD format is described in MLD Parameter Descriptions.

Data Generation File

The second file (named as <library_name>.tcl or <os_name>.tcl, with the filename being the same as the MLD filename) uses the parameters configured in the MSS file for the OS or library to generate data. Data generated includes, but is not limited to, header files, C files, DRCs for the OS or library, and executables. The Tcl file includes procedures that are called by the tool at various stages of its execution. Various procedures in a Tcl file include the following:

  • DRC (the name of the DRC given in the MLD file)
  • generate (tool defined procedure) called after OS and library files are copied
  • post_generate (tool defined procedure) called after generate has been called on all OSs, drivers, and libraries
  • execs_generate (a tool-defined procedure) called after the BSPs, libraries, and drivers have been generated
Note: An OS/library does not require a data generation file (Tcl file).