Performance Pragma - 11 - 2025.2 English - UG1448

Vitis HLS Messaging (UG1448)

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

Description

Warning: Default tripcount (1024) used for optimizing the dynamic loop ({location}).

Please add a tripcount pragma or run C-Simulation with [hls]csim.profile_tripcount=true or config_csim -profile_tripcount.

Explanation

By default, the performance pragma estimates the loop bound for dynamic loops to be 1024, which could cause an inaccurate performance estimation for loops, especially when the actual bound is greater than 1024.

Add a tripcount pragma or run C simulation with [hls]csim.profile_tripcount=true or config_csim -profile_tripcount to automatically capture the tripcount information in the csim.tcl file. This csim.tcl file is read by csynth automatically.