This page describes parameters that reside in the HDL Code Generation > Global Settings > Ports tab of the Configuration Parameters dialog box.
This setting is a parameter in the HDL Code Generation > Global Settings > Ports tab of the Configuration Parameters dialog box.
Default: Off
For triggered subsystems, use the trigger input signal as a clock in the generated HDL code. Make sure that the Clock edge setting in the Configuration Parameters dialog box matches the Trigger type of the Trigger block inside the triggered subsystem.
For triggered subsystems, do not use the trigger input signal as a clock in the generated HDL code.
Property:
TriggerAsClock |
Type: character vector |
Value:
'on' | 'off' |
Default:
'off' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
For example, to generate HDL code that uses the trigger signal as clock for
triggered subsystems within the sfir_fixed/symmetric_fir
DUT
subsystem, use either of these methods:
Pass the property as an argument to the
makehdl
function.
makehdl ('sfir_fixed/symmetric_sfir','TriggerAsClock','on')
When you use hdlset_param
, you can set the
parameter on the model and then generate HDL code using
makehdl
.
hdlset_param('sfir_fixed','TriggerAsClock','on') makehdl('sfir_fixed/symmetric_fir')
Enable this setting to create DUT output ports for the test point signals in the generated HDL code.
Default: Off
When you enable this setting, the code generator creates DUT output ports for the test point signals in the generated HDL code. You can observe the test point signals and debug your design by connecting a Scope block to the output ports corresponding to these signals.
When you disable this setting, the code generator preserves the test point signals and does not create DUT output ports in the generated HDL code.
Note
The code generator ignores this setting when you designate test points for states inside a Stateflow® Chart.
Property:
EnableTestpoints |
Type: character vector |
Value:
'on' | 'off' |
Default:
'off' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.
For example, after you designate signals as testpoints for the
sfir_fixed/symmetric_fir
DUT subsystem, to generate DUT
output ports in the HDL code, use either of these methods:
Pass the property as an argument to the
makehdl
function.
makehdl ('sfir_fixed/symmetric_sfir','EnableTestpoints','on')
When you use hdlset_param
, you can set the
parameter on the model and then generate HDL code using
makehdl
.
hdlset_param('sfir_fixed','EnableTestpoints','on') makehdl('sfir_fixed/symmetric_fir')
Flatten vector ports into a structure of scalar ports in VHDL® code.
Default: Off
On
When generating code for a vector port, generate a structure of scalar ports.
Off
When generating code for a vector port, generate a type definition and port declaration for the vector port.
dutlevel
When generating code for a vector port, generate a structure of scalar ports for vector ports that are only at DUT level. The DUT subsystem does not have to be at the top level of your model.
This option is enabled when the target language (specified by the Language option) is VHDL.
Property:
ScalarizePorts |
Type: character vector |
Value:
'on' | 'off' |
'dutlevel' |
Default:
'off' |
To set this property, use hdlset_param
or makehdl
. To view the property value, use hdlget_param
.