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
- ResourceID Data
Type: CHARACTER
- Capacity
Data Type: INTEGER
- Discipline
Data Type: INTEGER
- Dimension
Data Type: INTEGER
- Addr_Mode
Data Type: CHARACTER May be Indexed or NonIndexed (default)
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
- QuantityFreed Data Type:
INTEGER
Output Ports
Parameters
- ResourceID
Data Type:
CHARACTER
Free
File: general_blocks/QuantityShared_Resource/Free.sim
Description
The model frees resource units which were previously allocated.
Ports
Input Ports
- QuantityFreed Data Type:
INTEGER
- Indx NOT IMPLEMENTED
- Dim NOT IMPLEMENTED
Output Ports
Parameters
- ResourceID Data
Type: CHARACTER
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
- Amount Data
Type: INTEGER
- Dim
NOT IMPLEMENTED
Output Ports
Parameters
- ResourceID
Data Type:
CHARACTER
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
- Amount
Data Type: INTEGER
- Dim
NOT IMPLEMENTED
Output Ports
Parameters
- ResourceID
Data Type:
CHARACTER
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
- DSin
Data Type: DATA STRUCTURE
- Priority Data
Type: INTEGER
- QuantReq Data Type:
INTEGER
- Dim NOT IMPLEMENTED
Output Ports
- DSout
Data Type: DATA STRUCTURE
- UnitsGranted Data Type:
INTEGER
- Reject
Data Type: DATA
STRUCTURE
- Indx NOT IMPLEMENTED
Parameters
- ResourceID
Data Type: CHARACTER
- Dimension
Data Type: INTEGER
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
- DSin
Data Type: DATA STRUCTURE
Output Ports
- DSout
Data Type: DATA STRUCTURE
- UnitsGranted Data
Type: INTEGER
- Reject
Data Type:
DATA STRUCTURE
- Indx NOT IMPLEMENTED
Parameters
- ResourceID
Data Type: CHARACTER
- Priority
Data Type: INTEGER
- QuantityRequested Data Type:
INTEGER
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
- DSin
Data Type: DATA STRUCTURE
- QuantReq Data Type:
INTEGER
Output Ports
- DSout
Data Type: DATA STRUCTURE
- UnitsGranted
Data Type: INTEGER
- Reject
Data Type:
DATA STRUCTURE
- Indx NOT IMPLEMENTED
Parameters
- ResourceID
Data Type: CHARACTER
- Priority
Data Type: INTEGER
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
- DSin
Data Type: DATA STRUCTURE
- Priority Data
Type: INTEGER
- QuantReq Data Type:
INTEGER
- Dim NOT IMPLEMENTED
Output Ports
- DSout
Data Type: DATA STRUCTURE
- UnitsGranted Data Type:
INTEGER
- Reject
Data Type: DATA
STRUCTURE
- Indx NOT IMPLEMENTED
Parameters
- ResourceID Data Type:
CHARACTER