Compile C code into RTL
compile_c [‑force] [‑quiet] [‑verbose] <objects>
|Force generate product state regeneration
|Ignore command errors
|Suspend message limits during command execution
|The objects which need C to RTL conversion
In IP cores that are imported from Vivado® HLS, the
compile_c command detects C, C++, and SystemC files and converts those files to RTL for synthesis by the Vivado Design Suite.
This lets you use Vivado HLS to describe IP cores in a high-level language, like C or C++ rather than RTL.
compile_c command launches Vivado HLS to convert the C source files into RTL, and import the resulting RTL sources back into the design prior to synthesis.
compile_c command is automatically called by the Vivado Design Suite when it encounters IP with C code from the Vivado HLS system. You should not need to manually call this command.
-force - (Optional) Force regeneration of the RTL in the HLS-based IP.
-quiet - (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution.
-verbose - (Optional) Temporarily override any message limits and return all messages from this command.
<objects> - (Required) Specify the IP objects in the current project to convert files from C, C++, or SystemC to RTL code.
compile_c [get_ips instance_name]