Home / Glossary / High-Level Synthesis

On this pageIn more detailWhy it mattersRelated termsRead more

High-Level Synthesis (HLS)

High-level synthesis (HLS) is the automatic generation of hardware from a description written in a high-level programming language such as C or C++, instead of hand-written RTL.

In more detail

In conventional design, an engineer decides what happens on every clock cycle. With HLS, the engineer writes an algorithm, and the tool works out the cycle-by-cycle detail. It decides which operations happen when, how many arithmetic units are needed and how they are shared, then produces RTL in an HDL.

The engineer guides the result with directives: unroll this loop, pipeline that function, target a given clock speed. Changing directives produces different hardware from the same source, trading speed against area and power.

Why it matters

HLS raises productivity. Algorithmic code is shorter than RTL and much faster to simulate, so designers can explore more alternatives. This suits functions that are naturally expressed as algorithms: signal processing, image and video processing, and the arithmetic kernels of AI accelerators.

It has limits. The quality of results depends heavily on how the source is written; code written as ordinary software usually gives poor hardware. Control-heavy logic and precise interface timing are often still better written by hand. The generated RTL must be verified like any other.

In practice, many chips combine both approaches, with HLS for datapath blocks and hand-written RTL elsewhere. The output then goes through logic synthesis.

Related terms

Read more