create_clock - 2023.2 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2023-12-18
Version
2023.2 English

Description

Creates a virtual clock for the current solution.

The command can be executed only in the context of an active solution. The clock period is a constraint that drives optimization (chaining as many operations as feasible in the given clock period).

C and C++ designs support only a single clock.

Syntax

create_clock -period <number> [OPTIONS]

Options

-name <string>
Specifies the clock name. If no name is given, a default name is used.
-period <number>
Specifies the clock period in ns or MHz.
  • If no units are specified, ns is assumed.
  • If no period is specified, a default period of 10 ns is used.

Examples

Species a clock period of 50 ns:
create_clock -period 50
Uses the default name and period of 10 ns to specify the clock:
create_clock
Specifies clock frequency in MHz:
create_clock -period 100MHz