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
, andMaxFrequencyMHz
are not specified or all set to zero, the HDL Workflow Advisor does not have the Set Target Frequency task.When
DefaultFrequencyMHz
,MinFrequencyMHz
, andMaxFrequencyMHz
are all equal, the HDL Workflow Advisor adds the Set Target Frequency task, but the target frequency is not adjustable.When
MinFrequencyMHz
is 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 IPClockModuleInstance
and its specified clock output numberClockNumber
in the reference design. If theClockNumber
andClockModuleInstance
arguments are not specified, the default values are used.
Input Arguments
Version History
Introduced in R2015a