Libraries - 2021.1 English

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

Document ID
UG1400
Release Date
2021-07-19
Version
2021.1 English

The MSS file includes a library block for each library. The library block contains a reference to the library name (LIBRARY_NAME parameter) and the library version (LIBRARY_VER). There is no default value for these parameters. Each library is associated with a processor instance specified using the PROCESSOR_INSTANCE parameter. The library directory contains C source and header files and a make file for the library.

The MLD file for each library specifies all configurable options for the libraries and each MLD file has a corresponding Tcl file.

You can write your own libraries. These libraries must be in a specific directory under /sw_services as shown in the figure in Software Repository.

  • The LIBRARY_NAME attribute lets you specify any name for your libraries, which is also the name of the library directory.
  • The source files and make file for the library must be in the /src subdirectory under the / directory.
  • The make file must have the targets /include and /libs.
  • Each library must also contain an MLD file and a Tcl file in the /data subdirectory.

Refer to the existing libraries for more information about the structure of the libraries.

Refer to Microprocessor Library Definition (MLD) for details on how to write an MLD and its corresponding Tcl file.