at.dms.kjc.spacetime
Class DRAMCommandDist

java.lang.Object
  extended by at.dms.kjc.spacetime.DRAMCommandDist

public class DRAMCommandDist
extends Object

Determine the number of read and write commands that each dram has issued to it for a given schedule of slices.

Author:
mgordon

Constructor Summary
DRAMCommandDist(Slice[] schedule, RawProcElements rawChip)
          Create a new object that will calculate how many DRAM commands each DRAM has issued to it for schedule on rawChip.
 
Method Summary
 void calcDRAMDist()
           
 int getInterReads(StreamingDram dram)
          Return the number of reads from
 int getInterWrites(StreamingDram dram)
          Return the number of writes from
 int getIntraReads(StreamingDram dram)
          Return the number of reads from
 int getIntraWrites(StreamingDram dram)
          Return the number of writes from
 void printDramCommands()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DRAMCommandDist

public DRAMCommandDist(Slice[] schedule,
                       RawProcElements rawChip)
Create a new object that will calculate how many DRAM commands each DRAM has issued to it for schedule on rawChip.

Parameters:
schedule - The schedule.
rawChip - The raw chip.
Method Detail

getInterWrites

public int getInterWrites(StreamingDram dram)
Return the number of writes from
dram
during schedule for splitting and joining.

Parameters:
dram -
Returns:
The number of writes from
dram
during schedule for splitting and joining

getInterReads

public int getInterReads(StreamingDram dram)
Return the number of reads from
dram
during schedule for splitting and joining.

Parameters:
dram -
Returns:
The number of reads from
dram
during schedule for splitting and joining

getIntraWrites

public int getIntraWrites(StreamingDram dram)
Return the number of writes from
dram
during schedule within a trace (intra trace buffers).

Parameters:
dram -
Returns:
The number of writes from
dram
during schedule within a trace (intra trace buffers).

getIntraReads

public int getIntraReads(StreamingDram dram)
Return the number of reads from
dram
during schedule within a trace (intra trace buffer).

Parameters:
dram -
Returns:
The number of reads from
dram
during schedule within a trace (intra trace buffer).

calcDRAMDist

public void calcDRAMDist()

printDramCommands

public void printDramCommands()