Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 10/04/2021

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents set_time_format (::quartus::sdc_ext)

The following table displays information for the set_time_format Tcl command:

Tcl Package and Version

Belongs to ::quartus::sdc_ext

Syntax set_time_format [-h | -help] [-long_help] [-decimal_places <decimal_places> ] [-unit <unit> ]
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-decimal_places <decimal_places> Number of decimal places to use
-unit <unit> Default time unit to use

Sets time format, including time unit and decimal places. Time units are assumed to be nanoseconds (ns) by default. The "-unit" option overrides the default time units. Legal time unit values are: ps, ns, us, ms. Time units are displayed with three decimal places by default. The "-decimal_places" option overrides the default number of decimal places to show. The smallest resolution of all times units is one picosecond (ps). Any additional specified precision will be truncated.

Example Usage
# Create two clocks with a clock period of 8 nanoseconds.
create_clock -period 8.000 clk1

set_time_format -unit ps -decimal_places 0
create_clock -period 8000 clk2
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful
TCL_ERROR 1 ERROR: The default time unit can be set to ms, us, ns, or ps. Please specify one of these units instead.

Did you find the information on this page useful?

Characters remaining:

Feedback Message