What high-level synthesis decides

C/C++ code has no notion of clocks or registers. An HLS tool decides in which clock cycle each operation runs (scheduling), how many adders and multipliers to provide (allocation), and which operation is mapped to which functional unit and register (binding). It then outputs the datapath, together with a state-machine controller that steps through it, as RTL in Verilog or VHDL. Arrays become memories or registers, and function arguments become I/O ports or memory or streaming interfaces.

Tuning performance and area with directives

The same C code can yield very different hardware depending on the directives (pragmas) the designer gives. Loop pipelining starts the next iteration before the previous one finishes, and the initiation interval (II) states how many cycles apart iterations can start. Loop unrolling adds functional units that run in parallel, and array partitioning adds memory ports. On the other hand, a dependency on the result of the previous iteration keeps II from going below the number of cycles that calculation takes. Constructs that hardware cannot implement, such as dynamic memory allocation, cannot be used either.

Verification flow and suitable designs

The behavior is checked with a C testbench before synthesis, and the generated RTL is then run against the same testbench in a co-simulation that compares the results. Because many architectures can be tried faster than by writing RTL directly, HLS suits circuits where computation flows regularly, such as image and signal processing and AI accelerators. Interfaces whose timing must be fixed cycle by cycle, and circuits dominated by complex control, are usually written in RTL instead. The generated RTL then goes through logic synthesis and place and route as usual.

Try it: questions about High-level synthesis (HLS)

What is the technology called that automatically generates RTL from algorithm descriptions written in C or C++?

  1. AHigh-level synthesis (HLS)
  2. BLogic synthesis
  3. CPlace and route
Show answer and explanation

Answer: A. High-level synthesis (HLS)

High-level synthesis automatically allocates functional units and registers and schedules which clock cycle each operation occurs in, generating RTL from behavioral descriptions in C/C++ and similar languages. Different pipelining and parallelism options can be explored from the same source, raising abstraction and shortening development. It is used for signal-processing and AI accelerator design. Logic synthesis turns RTL into gates.

Books on IC design flow and EDA Ad

As an Amazon Associate I earn from qualifying purchases.

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary