Determine Loop Trip Counts - Determine Loop Trip Counts - 2026.1 English - XD261

Vitis Tutorials: Vitis HLS (XD261)

Document_ID
XD261
Release_Date
2026-07-20
Version
2026.1 English

Starting with Vitis HLS 2025.2, manual loop trip count annotation is no longer required. Instead, the tool can automatically capture loop iteration counts during C simulation.

  1. Run C Simulation by clicking Run under C SIMULATION in the Flow navigation panel.

  2. When the Run C SIMULATION Basic Settings window appears, enable the option hls.csim.profile_tripcount, then click Run.

    C Sim Settings

  3. The tool will profile loop iterations, generate a csim.tcl file under Output > csim > profile, and use this data for accurate performance budgeting during C synthesis.