C-Simulation Configuration - 2025.2 English - UG1702

Vitis Reference Guide (UG1702)

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

The csim options apply to the C-simulation process for validating the design's C/C++ language. Refer to Running C Simulation in the Vitis High-Level Synthesis User Guide (UG1399) for more information.

csim.O
Enables optimizing compilation, which eliminates debug constructs. The default value is false. Compiles in debug mode to enable debugging.
csim.O=true
csim.argv
Specifies an argument list for the behavioral test bench. The <arg> passes to the main() function in the C test bench.
csim.argv=arg1 arg2
csim.clean
Enables clean build. The default is false. Without this option, the design compiles incrementally.
csim.clean=true
csim.profile_tripcount
Enables trip count profiling.
csim.profile_tripcount=true
csim.ldflags
Specifies the options passed to the linker for simulation. This option is typically used to pass include path information or library information for the C/C++ test bench.
csim.ldflags=ldExample
csim.mflags
Provides options passed to the compiler for C simulation for speeding up compilation.
csim.mflags=mExample
csim.profile_tripcount
Enables loop trip count profiling, default is false.
csim.profile_tripcount=true
csim.setup
Creates a simulation binary in the csim directory of the current HLS component. You can launch simulation later from the compiled executable. The default value is false. Simulation runs after completing setup.
csim.setup=true