addClockInterface
Class: hdlcoder.ReferenceDesign
Namespace: hdlcoder
Add clock and reset interface
Syntax
addClockInterface('ClockConnection',clock_port,'ResetConnection',reset_port)
addClockInterface('ClockConnection',clock_port,'ResetConnection',reset_port,Name=Value)
Description
addClockInterface('ClockConnection',
adds a clock and reset interface to an clock_port,'ResetConnection',reset_port)hdlcoder.ReferenceDesign
object.
addClockInterface('ClockConnection',
adds a clock and reset interface to the clock_port,'ResetConnection',reset_port,Name=Value)hdlcoder.ReferenceDesign object
with additional options specified by one or more Name=Value
arguments. When you specify these arguments, in the HDL Workflow Advisor, HDL Coder™ adds a Set Target Frequency task. To modify the
output clock frequency setting in the reference design clock wizard, in this task,
specify the Target Frequency (MHz).
The HDL Workflow Advisor adjusts the Set Target Frequency task in different ways, depending on how you specify these name-value arguments:
When
DefaultFrequencyMHz,MinFrequencyMHz, andMaxFrequencyMHzare not specified or all set to zero, the HDL Workflow Advisor does not have the Set Target Frequency task.When
DefaultFrequencyMHz,MinFrequencyMHz, andMaxFrequencyMHzare all equal, the HDL Workflow Advisor adds the Set Target Frequency task, but the target frequency is not adjustable.When
MinFrequencyMHzis not equal toMaxFrequencyMHz, the HDL Workflow Advisor adds the Set Target Frequency task and the target frequency is adjustable. During the Create Project task, HDL Coder sets the target frequency on the specified clock module IPClockModuleInstanceand its specified clock output numberClockNumberin the reference design. If theClockNumberandClockModuleInstancearguments are not specified, the default values are used.
Input Arguments
Name-Value Arguments
Version History
Introduced in R2015a