coins.mdf
Class DataAccessCondition

java.lang.Object
  extended bycoins.mdf.Conditions
      extended bycoins.mdf.DataAccessCondition

public class DataAccessCondition
extends Conditions

The data access condition is a condition about data dependency. It is used by the dynamic scheduler.


Field Summary
protected  int elemSize
          The size of the elements of this condition
protected  MdfEnvironment env
           
protected  boolean[] isReady
          The condition whether the bit is ready
protected  MacroFlowGraph mfg
          The current macro flow graph
protected  int[][] vector
          The conditions which set into the executable conditions when the macro task finishes executing
protected  int vectSize
          Ths size of the bit vector
 
Constructor Summary
DataAccessCondition(MdfEnvironment e, MacroFlowGraph g)
          Constructor
 
Method Summary
protected  int[] bitVector(int id)
          Get the bit vector which means the condition when the specified macro task is finished executing.
protected  void showVector(java.lang.String name)
          Debug print of the bit vector.
 java.lang.String toString()
          Get the string image of the bit vector.
 java.lang.String toString(MacroTask mt)
          Get the string image of the bit vector which is belong to the specified macro task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

env

protected final MdfEnvironment env

mfg

protected final MacroFlowGraph mfg
The current macro flow graph


vector

protected final int[][] vector
The conditions which set into the executable conditions when the macro task finishes executing


elemSize

protected final int elemSize
The size of the elements of this condition


vectSize

protected final int vectSize
Ths size of the bit vector


isReady

protected final boolean[] isReady
The condition whether the bit is ready

Constructor Detail

DataAccessCondition

public DataAccessCondition(MdfEnvironment e,
                           MacroFlowGraph g)
                    throws PassException
Constructor

Parameters:
e - The environmet of the MDF module
g - The current macro flow graph
Throws:
PassException - Any exception in it
Method Detail

bitVector

protected int[] bitVector(int id)
Get the bit vector which means the condition when the specified macro task is finished executing.

Parameters:
id - The unique number of each macro tasks
Returns:
The bit vector which means the condition for the dynamic scheduler

showVector

protected void showVector(java.lang.String name)
Debug print of the bit vector.

Parameters:
name - The name of the bit vector

toString

public java.lang.String toString()
Get the string image of the bit vector.

Returns:
The string image of the bit vector

toString

public java.lang.String toString(MacroTask mt)
Get the string image of the bit vector which is belong to the specified macro task.

Parameters:
mt - The target macro task
Returns:
The string image of the bit vector