Vivado IDE Project Generation-Related Functions - 2025.2 English - UG1483

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2025-11-20
Version
2025.2 English

pre_project_creation(design_info)

Call this function before you create the AMD Vivado™ IDE project. Before the Model Composer Infrastructure creates the project, it has to know what files need to be added to the AMD Vivado™ IDE project, and what additional Tcl commands need to be run. Some use cases might require you to add some files to the project based on the top-level port interface of the Model Composer design. For this purpose, a structure that describes the port interface is passed into this function called design_info. design_info is described in detail in a later section.

post_project_creation(design_info)

Call this function at the end of Vivado IDE project creation. This is the last function to be called after the Project Generation script is run. This is a useful function for things like error parsing, generating reports, and opening the Vivado IDE project. A structure which describes the port interface is passed into this function called design_info. design_info is described in detail in a later section.

add_tcl_command(string)

This function adds the additional Tcl commands as a string. These Tcl commands are issued after the Vivado IDE project is created. Use this command to create a bitstream after project creation occurs. You can also use the Tcl command to source a particular Tcl file. The commands are executed in the order in which they are received.

add_file(string)

This function adds user-defined files to the Vivado IDE project. You can also use this API function to add XDC constraint files to the Vivado IDE project. Ensure that the order in which add_file is called, is hierarchical in nature. You must add the top-module file last.

run_synthesis()

This function runs synthesis in the Vivado IDE project.

run_implementation()

This function runs implementation in the Vivado IDE project.

generate_bitstream()

This function generates a bitstream in the Vivado IDE project.