Example Components : Example Component Library : STM_LIFO_PASSIVE

STM_LIFO_PASSIVE

A last-in-last-out passive resource component.

Description
Accepts STMM_TRANSACTION_TYPE transactions on the INPUT port, and processes them in a last-in-first-out 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 transaction 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.
When you insert the STM_LIFO_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