MATLAB SIMEVENTS RELEASE NOTES Guida Utente Pagina 21

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 114
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 20
Run a Sample Model
1-13
This block can process at most one job at a time and thus limits the availability of the
microcontroller to process new jobs. While a job is in this block, other jobs remain in
the FIFO Queue block.
The Start Timer and Read Timer blocks work together to compute the time that each
job spends in the server. The result of the computation is the et output signal from
the Read Timer block.
The Entity Sink block absorbs jobs that have completed their processing.
Between the blocks where event-based signals transition to signal-based signals,
Event to Timed Signal block performs the conversion.
Important discrete events in this model are the generation of a new job and the
completion of processing of a job.
The model also includes blocks that simulate a dynamic voltage scaling (DVS) controller
that adjusts the input voltage depending on the workload of the microcontroller. The
idea is to minimize the average cost per job, where the cost takes into account both
energy consumption and quality of service. For more information about the cost and
the optimization technique, see Modeling Load Within a Dynamic Voltage Scaling
Application online.
Appearance of Entities
Entities do not appear explicitly in the model window. However, you can gather
information about entities using plots, signals, and entity-related features in the
debugger. See these sections for more information:
“Synchronize Service Start Times with the Clock” online
“Select the First Available Server” on page 5-6
“Plot the Queue-Length Signal” on page 2-20, which is part of the larger example
“Build a Discrete-Event Model” on page 2-2
“Inspect Entities” online
Running the Simulation
To run the sedemo_DVS_model simulation, choose Simulation > Run from the model
window. A Figure window opens with a dynamic plot showing how the DVS controller
varies the voltage during the simulation to reduce the average cost per job. A triangle
marker moves to indicate the current voltage and corresponding cost.
Vedere la pagina 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 113 114

Commenti su questo manuale

Nessun commento