Unroll - Unroll - 2026.1 English - UG1399

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2026-06-23
Version
2026.1 English

Description

Unroll (syn.unroll.* / config_unroll)

Automatically unroll loops based on the loop index limit (or tripcount).

Syntax

Table 1. Configuration Table
Option Config File Tcl Default Description
tripcount_threshold syn.unroll.tripcount_threshold=<N> config_unroll -tripcount_threshold <N> 0 (disabled) All loops which have fewer iterations than the specified value are automatically unrolled during scheduling. Set to 0 to disable automatic unrolling.

Usage


ini
[hls]
syn.unroll.tripcount_threshold=18

tcl
config_unroll -tripcount_threshold 18


Example (UG1399):** Automatically unroll all loops with fewer than 18 iterations:
tcl
config_unroll -tripcount_threshold 18