SDFstateSpaceBufferAnalysisNingGao::TransitionSystem Class Reference

Collaboration diagram for SDFstateSpaceBufferAnalysisNingGao::TransitionSystem:

List of all members.

Classes

class  State

Public Types

typedef list< StateStates
typedef States::iterator StatesIter

Public Member Functions

 TransitionSystem (TimedSDFgraph *gr)
 ~TransitionSystem ()
TDtime execSDFgraph (const TBufSize *sp, bool *dep, vector< SDFtime > &startTime)

Private Member Functions

bool storeState (State &s, StatesIter &pos)
void clearStoredStates ()
void dfsVisitDependencies (uint a, int *color, int *pi, bool **abstractDepGraph, bool *dep)
void findStorageDependencies (bool **abstractDepGraph, bool *dep)
void findCausalDependencies (SDFactor *a, bool **abstractDepGraph)
void analyzePeriodicPhase (const TBufSize *sp, bool *dep)
void analyzeDeadlock (const TBufSize *sp, bool *dep)
TDtime computeThroughput (const StatesIter cycleIter)
bool releaseStorageSpaceSharedOutputBuffer (SDFchannel *c)
bool actorReadyToFire (SDFactor *a)
void startActorFiring (TimedSDFactor *a)
bool actorReadyToEnd (SDFactor *a)
void endActorFiring (SDFactor *a)
SDFtime clockStep ()
void initOutputActor ()

Private Attributes

TimedSDFgraphg
SDFactoroutputActor
TCnt outputActorRepCnt
State currentState
State previousState
States storedStates

Member Typedef Documentation


Constructor & Destructor Documentation

SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::TransitionSystem ( TimedSDFgraph gr  )  [inline]

References g, and initOutputActor().

Here is the call graph for this function:

SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::~TransitionSystem (  )  [inline]

Member Function Documentation

bool SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::actorReadyToEnd ( SDFactor a  )  [private]

actorReadyToEnd () The function returns true when the actor is ready to end its firing. Else the function returns false.

References SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::State::actClk, currentState, and SDFcomponent::getId().

Referenced by analyzePeriodicPhase(), and execSDFgraph().

Here is the call graph for this function:

bool SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::actorReadyToFire ( SDFactor a  )  [private]

actorReadyToFire () The function returns true when the actor is ready to fire in state s. Else it returns false.

References c, CH_SPACE, CH_TOKENS, SDFport::getChannel(), SDFcomponent::getId(), SDFport::getRate(), SDFchannel::getSrcActor(), SDFport::getType(), SDFactor::portsBegin(), and SDFactor::portsEnd().

Referenced by analyzePeriodicPhase(), and execSDFgraph().

Here is the call graph for this function:

void SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::analyzeDeadlock ( const TBufSize sp,
bool *  dep 
) [private]
void SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::analyzePeriodicPhase ( const TBufSize sp,
bool *  dep 
) [private]
void SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::clearStoredStates (  )  [inline, private]

References storedStates.

Referenced by execSDFgraph().

SDFtime SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::clockStep (  )  [private]

clockStep () The function progresses time till the first end of firing transition becomes enabled. The time step is returned. In case of deadlock, the time step is equal to UINT_MAX.

References a, SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::State::actClk, currentState, g, SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::State::glbClk, and SDFgraph::nrActors().

Referenced by analyzePeriodicPhase(), and execSDFgraph().

Here is the call graph for this function:

TDtime SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::computeThroughput ( const StatesIter  cycleIter  )  [private]

computeThroughput () The function calculates the throughput of the states on the cycle. Its value is equal to the average number of firings of an actor per time unit.

References SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::State::glbClk, and storedStates.

Referenced by execSDFgraph().

void SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::dfsVisitDependencies ( uint  a,
int *  color,
int *  pi,
bool **  abstractDepGraph,
bool *  dep 
) [private]

dfsVisitDependencies () The function performs a DFS on the abstract dependency graph from a node a to find all cycles of which a is part. Channels on a cycle are when needed marked to have a storage dependency.

References c, SDFgraph::channelsBegin(), SDFgraph::channelsEnd(), g, SDFchannel::getDstActor(), SDFcomponent::getId(), SDFchannel::getSrcActor(), and SDFgraph::nrActors().

Referenced by findStorageDependencies().

Here is the call graph for this function:

void SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::endActorFiring ( SDFactor a  )  [private]

endActorFiring () Produce tokens on all output channels and remove the actor firing from the list of active firings.

References SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::State::actClk, c, currentState, SDFport::getChannel(), SDFcomponent::getId(), SDFport::getRate(), SDFport::getType(), SDFactor::portsBegin(), SDFactor::portsEnd(), and PRODUCE.

Referenced by analyzePeriodicPhase(), and execSDFgraph().

Here is the call graph for this function:

void SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::findCausalDependencies ( SDFactor a,
bool **  abstractDepGraph 
) [private]

findCausalDependencies () The function tracks all causal dependencies in the actor firing of actor a. Any causal dependency that is found is added to the abstract dependency graph.

References c, CH_SPACE_PREV, CH_TOKENS_PREV, SDFport::getChannel(), SDFchannel::getDstActor(), SDFcomponent::getId(), SDFport::getRate(), SDFchannel::getSrcActor(), SDFport::getType(), SDFactor::portsBegin(), and SDFactor::portsEnd().

Referenced by analyzePeriodicPhase().

Here is the call graph for this function:

void SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::findStorageDependencies ( bool **  abstractDepGraph,
bool *  dep 
) [private]

findStorageDependencies () The function find all cycles in the abstract dependency graph. Any channel modeling storage space which is part of a cycle is marked to have a storage dependency.

References c, color, dfsVisitDependencies(), g, SDFgraph::nrActors(), SDFgraph::nrChannels(), and pi.

Referenced by analyzeDeadlock(), and analyzePeriodicPhase().

Here is the call graph for this function:

void SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::initOutputActor (  )  [private]

initOutputActor () The function selects an actor to be used as output actor in the state transition system.

References a, SDFgraph::actorsBegin(), SDFgraph::actorsEnd(), FSMSADF::computeRepetitionVector(), g, SDFcomponent::getId(), outputActor, and outputActorRepCnt.

Referenced by TransitionSystem().

Here is the call graph for this function:

bool SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::releaseStorageSpaceSharedOutputBuffer ( SDFchannel c  )  [private]

releaseStorageSpaceSharedOutputBuffer () The function checks whether space must be produced on the shared output buffer. This is the case when the channel 'c' is the last channel to consume the token from the shared output buffer connected to the source of the channel. This condition is met when all outgoing channels of the source actor of the channel 'c' contain less tokens then the channel 'c'.

References a, CH, SDFport::getChannel(), SDFcomponent::getId(), SDFchannel::getSrcActor(), SDFport::getType(), SDFactor::portsBegin(), and SDFactor::portsEnd().

Referenced by startActorFiring().

Here is the call graph for this function:

void SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::startActorFiring ( TimedSDFactor a  )  [private]

startActorFiring () Start the actor firing. Remove tokens from all input channels and add the actor firing to the list of active actor firings and advance sequence position.

References SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::State::actClk, c, CONSUME, CONSUME_SP, currentState, SDFport::getChannel(), TimedSDFactor::getExecutionTime(), SDFcomponent::getId(), SDFport::getRate(), SDFchannel::getSrcActor(), SDFport::getType(), SDFactor::portsBegin(), SDFactor::portsEnd(), PRODUCE_SP, and releaseStorageSpaceSharedOutputBuffer().

Referenced by analyzePeriodicPhase(), and execSDFgraph().

Here is the call graph for this function:

bool SDFstateSpaceBufferAnalysisNingGao::TransitionSystem::storeState ( State s,
StatesIter pos 
) [private]

storeState () The function stores the state s on whenever s is not already in the list of storedStates. When s is stored, the function returns true. When the state s is already in the list, the state s is not stored. The function returns false. The function always sets the pos variable to the position where the state s is in the list.

References storedStates.

Referenced by execSDFgraph().


Member Data Documentation


The documentation for this class was generated from the following files: