MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guida Utente Pagina 383

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 674
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 382
Model Coverage for Multiple Instances of a Referenced Model
18-17
4
To make sure that the software records coverage for both instances of this model:
a
Select Analysis > Coverage > Settings.
b
On the Coverage pane, under Coverage for referenced models, click Select
Models.
In the Select Models for Coverage Analysis dialog box, verify that both instances
of the referenced model are selected. In this example, the list now looks like the
following.
If you have multiple instances of a referenced model in Normal mode, you can
choose to record coverage for all of them or none of them.
c
Click OK to close the Select Models for Coverage Analysis dialog box.
5
Simulate your model again.
6
When the simulation is complete, open the HTML coverage report.
In this example, the referenced model achieved 85% coverage. Note the following
about the coverage data for the Range Check subsystem:
The Saturate Count block executed 179 times. The simulation of the Counter2
block executed the Saturate Count block an additional 79 times, for a total of 179
executions.
The decision input >= upper limit was true 21 times during this
simulation, compared to 0 during the first simulation. The fourth decision input
> lower limit was still never false. Three out of four decisions were recorded
during simulation, so this block achieved 75% coverage.
Vedere la pagina 382
1 2 ... 378 379 380 381 382 383 384 385 386 387 388 ... 673 674

Commenti su questo manuale

Nessun commento