Example Components : Example Component Library : STM_PRTY_PASSIVE

STM_PRTY_PASSIVE

A priority-based passive resource component.

Description
Accepts STMM_TRANSACTION_TYPE transactions on the INPUT port, and processes them in a priority-based scheme.

RELEASE_ – The component also accepts STMM_TRANSACTION_TYPE transactions on the RELEASE_ port and processes them immediately.

USAGE – This port specifies the amount of resource used by a transaction based on the class.

If there is enough of the resource available (AVAIL) to process an input transaction, the resource is allocated, and ALLOCD is set to the input transaction.
When a transaction arrives on the RELEASE_ port, the resources associated with the transaction are released (based on the value of USAGE), and FREED is set to the release transaction.

SIZEINITIAL_RESOURCE_SIZE is the initial size of the resource. A change in the size of the resource can be requested by modifying SIZE. An increase in size is always allowed, but a decrease is only allowed when the new size is greater than or equal to the amount of resource in use.

When you insert the STM_PRTY_PASSIVE component into an activity chart, the component is represented by the following graphic image.
I/O Stubs
 
Analysis Statistics
 

 

If you set ANALYZE, the following statistics are gathered:
:
 
To access these values in the panels or in the simulation monitor, use the following naming convention: <Component_Name>^value_name
For example, you access the QUEUE_LENGTH for component PASS_RES1 as PASS_RES1^QUEUE_LENGTH.
CLEAR clears the statistics.
UPDATE makes sure the statistics values are up-to-date. In some cases, the statistics are only updated when events are triggered within the resource, so UPDATE ensures the statistics are up-to-date regardless of the triggering events.
Termination Type
Reactive Controlled