Scripting

create_generated_clock (Tcl Script API Function)



The create_generated_clock function has the following format:

Syntax create_generated_clock  [-name <clock_name>]  -source <master_pin>  
[-divide by <factor>]  [-multiply_by <factor>]  [-duty_cycle <percent>
[-invert]  <clock_pin_list>

Arguments

-name <clock_name> Name of the generated clock. Optional.
-source <master_pin> Name of the source clock pin. Required.

-divide_by <factor>

Frequency division factor for generated clock. Defaults to 1. Optional.

-multiply_by <factor>

Frequency multiplication factor for generated clock. Defaults to 1. Optional.

-duty_cycle <percent>

Duty cycle of generated clock. Defaults to 50. Optional.

-invert

Specifies that the derived clock should be inverted with respect to source clock. Optional.

<clock_pin_list>

List of derived clock pins, for example, {clk1 clk2 ...}. Required.

Return Value

Code Name Code String Return
TCL_ERROR 1

Usage: create_generated_clock [-name <clock_name>] -source <master_pin>
[-divide_by <factor>] [-multiply_by <factor>] [-duty_cycle <percent>] [-invert] <clock_pin_list>

TCL_ERROR 1

Duplicate -source option

TCL_ERROR 1

<value> is not a valid divide_by value

TCL_ERROR 1 Number expected after -divide_by option
TCL_ERROR 1 Duplicate -divide_by option
TCL_ERROR 1

<value> is not a valid multiply_by value

TCL_ERROR 1 Number expected after -multiply_by option
TCL_ERROR 1 Duplicate multiply_by option
TCL_ERROR 1

<value> is not a valid duty_cycle value

TCL_ERROR 1 Number expected after -duty_cycle option
TCL_ERROR 1 Duplicate -duty_cycle option
TCL_ERROR 1 Missing clock pin list
TCL_ERROR 1 Missing -source option
TCL_ERROR 1 Source clock <name> does not exist
TCL_ERROR 1 Source clock <name> is already a derived clock
TCL_ERROR 1 Illegal source clock <name>
TCL_ERROR 1 Illegal duty cycle value <value>
TCL_ERROR 1 Illegal derived clock name <name>
TCL_ERROR 1 Illegal clock pin name <name>
TCL_ERROR 1 Unknown option <name>
TCL_ERROR 1 One or more Quartus® II settings and configuration files are not writable
TCL_ERROR 1 Quartus II settings and configuration files may be corrupted
TCL_ERROR 1 Unknown problem in processing the command
TCL_ERROR 1 Unknown command-line option <name>
TCL_ERROR 1 A Tcl transaction is in progress and must be completed before executing:
TCL_ERROR 1 Project has no active compiler setting
TCL_ERROR 1 No project is currently open
Description Creates a derived, or generated, clock from the given clock source. A generated clock can be derived only from a base clock. The generated clock is always assumed to be propagated.


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.