timer_setenv_clock_period

Sets the clock period constraint on the specified clock.

 

timer_setenv_clock_period -clock clock_name \

[-unit {value}] -period period_value \

[-dutycycle dutycycle]

Arguments

-clock clock_name

Specifies the name of the clock for which to set the period.

 

-unit {value}

Specifies the unit for the clock period constraint. The default is ns.  The following table shows the acceptable values for this argument:

 

Value

Description

ns

nanoseconds

ps

picoseconds

 

-period period_value

Specifies the period in the specified unit.

 

-dutycycle dutycycle

Specifies the duty cycle for the clock constraint.

Supported Families

All

Exceptions

Examples

The following example sets a clock period of 2.40ns on the clock clk1:

 

timer_setenv_clock_period -clock clk1 -unit {ns} -period 2.40

See Also

timer_setenv_clock_freq

Tcl documentation conventions