Customize Black Box or HDL Cosimulation Interface
You can customize port names and set attributes of the external component when you generate an interface from the following blocks:
Model with black box implementation
Subsystem with black box implementation
HDL Cosimulation
Interface Parameters
Open the HDL Block Properties dialog box to see the interface generation parameters.
The following table summarizes the names, value settings, and purpose of the interface generation parameters.
Note
You cannot specify clock, reset, and clock enable signals explicitly in your Simulink® model by using the AddClockEnablePort, AddClockPort, and AddResetPort parameters. Instead, use these parameters to add a clock, reset, or clock enable port in the generated HDL code.
Parameter Name | Values | Description |
---|---|---|
AddClockEnablePort |
Default:
| If on , add a clock enable input port to the
interface generated for the block. The name of the port is specified by
ClockEnableInputPort. |
AddClockPort |
Default:
| If If
AddClockPort is |
AddResetPort |
Default:
| If on , add a reset input port to the interface
generated for the block. The name of the port is specified by
ResetInputPort. |
AllowPipelineDistribution |
Default:
| If on , allow HDL Coder™ to move registers across the block, from input to output or output to
input. |
ClockEnableInputPort | Default: | Specifies HDL name for block's clock enable input port. To generate the
clock enable input ports with the HDL names specified in this property, set
AddClockEnablePort to
You can specify multiple clock enable names. The mapping of clock enables depends on input and output sample rates. The clock enable ports are mapped from fastest to slowest sample rate. For
example, if your model has two sample rates and you specify When
Clock inputs is |
ClockInputPort | Default: | Specifies HDL name for block's clock input signal. To generate the clock
input ports with the HDL name specified in this property, set
AddClockPort to
You can specify multiple clock port names. The mapping of clock ports depends on input and output sample rates. The clock ports are mapped from fastest to slowest sample rate. For
example, if your model has two sample rates and you specify When
Clock inputs is |
ConstrainedOutputPipeline | Default: 0 | Specifies the number of delays that you want the code generator to insert at the output of the interface by redistributing existing delays in your design. |
EntityName | Default: Entity name string is derived from the block name, and modified when necessary to generate a legal VHDL® entity name. | Specifies VHDL
|
GenericList | Pass a cell array variable that contains cell arrays each with two or
three character arrays, or enter a cell array of cell arrays that each contain two
or three character arrays. The character arrays represent the name, value, and
optional data type of a VHDL
Default: none | Specifies a list of VHDL
For example, in the HDL Block Properties dialog box,
enter
To
set
If
the data type is
|
ImplementationLatency | -1 | 0 | positive integer Default: -1 | Specifies the additional latency of the external component in time steps, relative to the Simulink block. If 0 or greater, this value is used for delay balancing. Your inputs and outputs must operate at the same rate. If -1, latency is unknown. This disables delay balancing. For Black Box subsystem that has multiple sample rates, the product of ImplementationLatency and slowest output sample rate must be divisible by all the output sample rates. |
InlineConfigurations (VHDL only) |
Default: If this parameter is
unspecified, defaults to the value of the global
| If off , suppress generation of a configuration for
the block, and require a user-supplied external configuration. |
InputPipeline | Default: 0 | Specifies the number of input pipeline stages (pipeline depth) in the generated code. |
OutputPipeline | Default: 0 | Specifies the number of output pipeline stages (pipeline depth) in the generated code. |
ResetInputPort | Default: | Specifies HDL name for block's reset input. To generate the reset input
ports with the HDL name specified in this property, set
AddResetPort to
You can specify multiple reset port names. The mapping of reset ports depends on input and output sample rates. The reset ports are mapped from fastest to slowest sample rate. For
example, if your model has two sample rates and you specify When
Clock inputs is |
VHDLArchitectureName (VHDL only) | Default: | Specifies RTL architecture name generated for the block. The architecture name
is generated only if InlineConfigurations is
on . |
VHDLComponentLibrary (VHDL only) | Default: | Specifies the library from which to load the VHDL component. |