Quantity Shared Resources


Set_QResource


File: general_blocks/QuantityShared_Resource/Resource.sim

Description

Resource definition model. This model establishes resources. Each instance of a Quantity Shared Resource must have a Set_QResource. Use this model to establish (instantiate) a resource, and set it's parameters. A resource can represent for example, memory, bandwidth, etc. This resource model is to be used with resources such as Allocate, AllocateBasic, AllocateParam, AllocatePriority, ConsumeResourceUnits, ChangeCapacity, Free, and FreeBasic. Each resource has a logical name, called ResourceID. You can have multiple resources in a system model. The models which operate on the resource use the ResourceID name to reference a specific resource.

Ports
Input Ports
Output Ports
Parameters

FreeBasic



File: general_blocks/QuantityShared_Resource/FreeBasic.sim

Description

The model frees resource units which were previously allocated. To free units, enable the input with the number of units to be freed.

Ports
Input Ports
Output Ports
Parameters

Free


File: general_blocks/QuantityShared_Resource/Free.sim

Description

The model frees resource units which were previously allocated.

Ports
Input Ports
Output Ports
Parameters

ConsumeResourceUnits


File: general_blocks/QuantityShared_Resource/ConsumeResourceUnits.sim

Description

The model consumes resource units which were previously granted from a resource pool. The resource units are consumed by decreasing the capacity of the resource by the given amount, and then Freeing the same number of resource units.

NOTE: Must use Set_QResource model with all the Quantity Shared Resource models.

Ports
Input Ports
Output Ports
Parameters

ChangeCapacity


File: general_blocks/QuantityShared_Resource/ChangeCapacity.sim

Description

The model changes the capacity of a Quantity-Shared resource. The Capacity of the resource is increased if the Amount input is positive and decreased if the Amount input is negative.

NOTE: Must use Set_QResource model with all the Quantity Shared Resource models.

Ports
Input Ports
Output Ports
Parameters

AllocatePriority

File: general_blocks/QuantityShared_Resource/AllocatePriority.sim

Description

The model allocates Resource units for a Quantity-Shared resource. A request for resource units is made by enabling all inputs. The combination of these inputs and the parameter settings is called "transaction", or a request for resource units.

NOTE: Must use Set_QResource model with all the Quantity Shared Resource models.

Ports
Input Ports
Output Ports
Parameters

AllocateParam


File: general_blocks/QuantityShared_Resource/AllocateParam.sim

Description

The model allocates Resource units for a Quantity-Shared resource. A request for resource units is made by enabling all inputs. Attributes of the transaction are specified with the Parameter settings.
NOTE: Must use Set_QResource model with all the Quantity Shared Resource models.

Ports
Input Ports
Output Ports
Parameters

AllocateBasic


File: general_blocks/QuantityShared_Resource/AllocateBasic.sim

Description

The model allocates Resource units for a Quantity-Shared resource. A request for resource units is made by enabling all inputs. The combination of these inputs and the parameter settings is called "transaction", also known as a request for resource units.

NOTE: Must use Set_QResource model with all the Quantity Shared Resource models.

Ports
Input Ports
Output Ports
Parameters

Allocate


File: general_blocks/QuantityShared_Resource/Allocate.sim

Description

The model allocates Resource units for a Quantity-Shared resource. A request for resource units is made by enabling all inputs. The combination of these inputs  is called "transaction", also known as a request for resource units.

NOTE: Must use Set_QResource model with all the Quantity Shared Resource models.

Ports
Input Ports
Output Ports
Parameters