User`s guide
Simulink Optimizations and Model Coverage
15-11
Simulink Optimizations and Model Coverage
In the Configuration Parameters dialog box Optimization pane, there are three
Simulink optimization parameters that can affect your model coverage data:
In this section...
“Inline parameters” on page 15-11
“Block reduction” on page 15-11
“Conditional input branch execution” on page 15-12
Inline parameters
To transform tunable model parameters into constant values for code generation, in the
Configuration Parameters dialog box, on the Optimization > Signals and Parameters
pane, select Inline parameters. When you enable this option, you cannot change the
values of block parameters during simulation.
When the parameters are transformed into constants, Simulink may eliminate certain
decisions in your model. You cannot achieve coverage for eliminated decision, so the
coverage report displays 0/0 for those decisions.
Block reduction
To achieve faster execution during model simulation and in generated code, in the
Configuration Parameters dialog box, on the Optimization pane, select the Block
reduction parameter. The Simulink software collapses certain groups of blocks into a
single, more efficient block, or removes them entirely.
One of the model coverage options, Force block reduction off, allows you to ignore the
Block reduction parameter when collecting model coverage.
If you do not select the Block reduction parameter, or if you select Force block
reduction off, the Simulink Verification and Validation software provides coverage data
for every block in the model that collects coverage.
If you select the Block reduction parameter and do not set Force block reduction
off, the coverage report lists the reduced blocks that would have collected coverage.