dni::set_time_unit (::quartus::dcmd_dni)
The following table displays information for the dni::set_time_unit Tcl command:
Tcl Package and Version |
Belongs to ::quartus::dcmd_dni 1.0 |
|||
Syntax | dni::set_time_unit [-h | -help] [-long_help] <unit> | |||
Arguments | -h | -help | Short help | ||
-long_help | Long help with examples and possible return values | |||
<unit> | Default time unit to use | |||
Description |
Time units are assumed to be nanoseconds (ns) by default unless otherwise specified. Time or delay values are also displayed in nanoseconds by default without time units. The dni::set_time_unit COMMAND overrides the default time units assumed by the Timing Analyzer. Legal values are: ps, ns, us, ms 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 dni::set_time_unit ps 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. |