Remove Unused Ports
Remove unused ports from the design
Since R2020b
Model Configuration Pane: Optimization / General
Description
The Remove Unused Ports parameter removes ports from your design that are unused from the generated HDL code.
Settings
On
(default) | Off
On
Removes ports in your design that are unused from the generated HDL code. This optimization preserves unused ports at the top-level DUT subsystem. All other unused ports are removed from the HDL code.
Off
Do not remove unused ports from the HDL code.
Tips
To set this property, use the functions hdlset_param
or makehdl
. To view the property value, use
the function hdlget_param
.
For example, you can set the DeleteUnusedPorts
property to off
when you generate HDL code for the symmetric_fir
subsystem inside the sfir_fixed
model using either of these methods.
Pass the property as an argument to the
makehdl
function.makehdl('sfir_fixed/symmetric_fir', ... 'DeleteUnusedPorts','off')
When you use
hdlset_param
, you can set the parameter on the model and then generate HDL code usingmakehdl
.hdlset_param('sfir_fixed','DeleteUnusedPorts','on') makehdl('sfir_fixed/symmetric_fir')
Recommended Settings
No recommendations.
Programmatic Use
Parameter: DeleteUnusedPorts |
Type: character vector |
Value: 'on' | 'off' |
Default: 'on' |
Version History
Introduced in R2020b