|
OpenASIP 2.2
|
#include <ShortImmPSocketResource.hh>


Public Member Functions | |
| virtual | ~ShortImmPSocketResource () |
| ShortImmPSocketResource (const std::string &name, int immediateWidth, bool signExtends, unsigned int initiationInterval=0) | |
| virtual bool | isShortImmPSocketResource () const |
| int | immediateWidth () const |
| bool | signExtends () const |
| bool | zeroExtends () const |
Public Member Functions inherited from OutputPSocketResource | |
| virtual | ~OutputPSocketResource () |
| OutputPSocketResource (const std::string &name, unsigned int initiationInterval=0) | |
| virtual bool | isAvailable (const int cycle) const override |
| virtual bool | isOutputPSocketResource () const override |
| virtual void | assign (const int cycle, MoveNode &node) override |
| virtual void | unassign (const int cycle, MoveNode &node) override |
| virtual bool | canAssign (const int cycle, const MoveNode &node) const override |
| virtual bool | operator< (const SchedulingResource &other) const override |
| void | clear () override |
Public Member Functions inherited from PSocketResource | |
| virtual | ~PSocketResource () |
| PSocketResource (const std::string &name, unsigned int initiationInterval=0) | |
| virtual bool | isInUse (const int cycle) const override |
| void | clear () override |
Public Member Functions inherited from SchedulingResource | |
| virtual | ~SchedulingResource () |
| SchedulingResource (const std::string &name, const unsigned int ii=0) | |
| virtual int | relatedResourceGroupCount () const |
| virtual int | dependentResourceGroupCount () const |
| int | relatedResourceCount (const int group) const |
| int | dependentResourceCount (const int group) const |
| virtual void | addToRelatedGroup (const int group, SchedulingResource &resource) |
| virtual void | addToDependentGroup (const int group, SchedulingResource &resource) |
| virtual SchedulingResource & | relatedResource (const int group, const int index) const |
| virtual SchedulingResource & | dependentResource (const int group, const int index) const |
| virtual bool | hasRelatedResource (const SchedulingResource &sResource) const |
| virtual bool | hasDependentResource (const SchedulingResource &sResource) const |
| virtual const std::string & | name () const |
| virtual int | useCount () const |
| virtual void | increaseUseCount () |
| virtual void | decreaseUseCount () |
| virtual bool | isInputPSocketResource () const |
| virtual bool | isInputFUResource () const |
| virtual bool | isOutputFUResource () const |
| virtual bool | isExecutionPipelineResource () const |
| virtual bool | isBusResource () const |
| virtual bool | isSegmentResource () const |
| virtual bool | isIUResource () const |
| virtual bool | isITemplateResource () const |
| int | instructionIndex (int cycle) const |
| void | setInitiationInterval (unsigned int ii) |
| int | initiationInterval () const |
| virtual void | setMaxCycle (unsigned int) |
Protected Member Functions | |
| virtual bool | validateRelatedGroups () |
Protected Member Functions inherited from OutputPSocketResource | |
| virtual bool | validateDependentGroups () override |
Private Member Functions | |
| ShortImmPSocketResource (const ShortImmPSocketResource &) | |
| Copying forbidden. | |
| ShortImmPSocketResource & | operator= (const ShortImmPSocketResource &) |
| Assignment forbidden. | |
Private Attributes | |
| int | immediateWidth_ |
| Width of immediates carried by the related bus. | |
| bool | signExtends_ |
| Extension mode of related bus. | |
Additional Inherited Members | |
Protected Types inherited from PSocketResource | |
| typedef std::map< int, std::set< MoveNode * > > | ResourceRecordType |
Protected Attributes inherited from PSocketResource | |
| ResourceRecordType | resourceRecord_ |
Protected Attributes inherited from SchedulingResource | |
| int | initiationInterval_ |
An interface for scheduling resources of Resource Model The derived class ShortImmPSocketResource
Definition at line 43 of file ShortImmPSocketResource.hh.
|
virtual |
| ShortImmPSocketResource::ShortImmPSocketResource | ( | const std::string & | name, |
| int | immediateWidth, | ||
| bool | signExtends, | ||
| unsigned int | initiationInterval = 0 |
||
| ) |
Constructor.
| name | Name of socket. |
Definition at line 40 of file ShortImmPSocketResource.cc.
|
private |
Copying forbidden.
| int ShortImmPSocketResource::immediateWidth | ( | ) | const |
Return the width of immediate carried by the related bus.
Definition at line 68 of file ShortImmPSocketResource.cc.
References immediateWidth_.
Referenced by BusBroker::canTransportImmediate().
|
virtual |
Return true always.
Reimplemented from SchedulingResource.
Definition at line 58 of file ShortImmPSocketResource.cc.
|
private |
Assignment forbidden.
| bool ShortImmPSocketResource::signExtends | ( | ) | const |
Return true if the related bus sign extends.
Definition at line 78 of file ShortImmPSocketResource.cc.
References signExtends_.
Referenced by BusBroker::canTransportImmediate().
|
protectedvirtual |
Tests if all referred resources in related groups are of proper types.
Reimplemented from OutputPSocketResource.
Definition at line 99 of file ShortImmPSocketResource.cc.
References SchedulingResource::isBusResource(), SchedulingResource::relatedResource(), SchedulingResource::relatedResourceCount(), and SchedulingResource::relatedResourceGroupCount().

| bool ShortImmPSocketResource::zeroExtends | ( | ) | const |
Return true if the related bus does not sign extend.
Definition at line 88 of file ShortImmPSocketResource.cc.
References signExtends_.
|
private |
Width of immediates carried by the related bus.
Definition at line 68 of file ShortImmPSocketResource.hh.
Referenced by immediateWidth().
|
private |
Extension mode of related bus.
Definition at line 70 of file ShortImmPSocketResource.hh.
Referenced by signExtends(), and zeroExtends().