MAD Format Example - 2024.1 English

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

Document ID
UG1400
Release Date
2024-05-30
Version
2024.1 English

This section explains the MAD format through an example MAD file and its corresponding Tcl file.

Example: MAD File

The following is an example of an MAD file for a sample application called my_application.
 option psf_version = 2.1;

option is a keyword identified by the tool. The option name following the option keyword is a directive to the tool to do a specific action.

The psf_version of the MAD file is defined to be 2.1 in this example. This is the only option that can occur before a BEGIN APPLICATION construct .
 BEGIN APPLICATION my_application
The BEGIN APPLICATION construct defines the start of an application named my_application.
 option NAME = myapplication
					option DESCRIPTION = "My custom application"
					END APPLICATION
Note: Application NAME should match the return value of Tcl proc swapp_get_name in application Tcl file described above.