com.cmpware.cmp.models
Class SPU_pipeline

java.lang.Object
  extended by com.cmpware.cmp.models.SPU_pipeline

public class SPU_pipeline
extends java.lang.Object

This is part of the model for of the Synergistic Processing Unit (SPU) used by the Cell broadband Engine. The information used to create this software was taken from the IBM document: "Cell Broadband Engine Programming Handbook", Version 1.1 (April 24, 2007). Currently this code only contains static information about the SPU pipeline. It is used primarily for displays and not for the actual simulation models.

Copyright (c) 2007 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Nested Class Summary
static class SPU_pipeline.InstrData
          This class defines the pipeline properties for an instruction.
 
Field Summary
static java.lang.String copyright
          Copyright string
protected static java.util.Hashtable iData
          The SPU pipeline instruction data hashtable (by instruction name)
static SPU_pipeline.InstrData[] instrData
          The SPU instruction pipeline data
 
Constructor Summary
SPU_pipeline()
           
 
Method Summary
static int getLatency(java.lang.String instrName)
          This method returns the pipeline latency of the instruction.
static int getPipelineNumber(java.lang.String instrName)
          This method returns the pipeline number of the instruction.
static int getStalls(java.lang.String instrName)
          This method returns the number of stall cycles of the instruction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values

instrData

public static SPU_pipeline.InstrData[] instrData
The SPU instruction pipeline data


iData

protected static final java.util.Hashtable iData
The SPU pipeline instruction data hashtable (by instruction name)

Constructor Detail

SPU_pipeline

public SPU_pipeline()
Method Detail

getPipelineNumber

public static final int getPipelineNumber(java.lang.String instrName)
This method returns the pipeline number of the instruction. This should be a 1 or a 0, but will be a -1 if the instruction is not recognized.

Parameters:
instrName - the instruction mnemonic.
Returns:
This method returns the pipeline number of the instruction.

getLatency

public static final int getLatency(java.lang.String instrName)
This method returns the pipeline latency of the instruction. This will be a 0 if the instruction is not recognized.

Parameters:
instrName - the instruction mnemonic.
Returns:
This method returns the pipeline latency of the instruction.

getStalls

public static final int getStalls(java.lang.String instrName)
This method returns the number of stall cycles of the instruction. This will be a 0 if the instruction is not recognized.

Parameters:
instrName - the instruction mnemonic.
Returns:
This method returns the number of stall cycles of the instruction.