hicosim.components.backend.processor
Class Decoder

java.lang.Object
  extended by hicosim.components.backend.processor.Decoder

public class Decoder
extends java.lang.Object

Helper for the processor to decode.

Author:
Michael Wager, Luca Calchera, 16th May 2009

Constructor Summary
Decoder()
          Konstruktor - setup the arrays.
 
Method Summary
 Instruction decipherALUCommand(int command)
          This method is used to return a SCALAR-ALU-Instruction enum depending on the given intValue.
 Instruction decipherFLAGCommand(int command)
          This method is used to return a FLAG-Instruction enum depending on the given intValue.
 Instruction decipherJMP_NOPCommand(int command)
          This method is used to return a JMP_NOP-Instruction enum depending on the given intValue.
 Instruction decipherLOAD_STORECommand(int command)
          This method is used to return a LOAD-STORE-Instruction enum depending on the given intValue.
 Processor.ScalarRegister decipherScalarRegister(int register)
          This method is used to return a ScalarRegister enum depending on the given intValue.
 ScalarType decipherType(int type)
          This method is used to return a ScalarType enum depending on the given intValue.
 VectorType decipherVectorType(int type)
          This method is used to return a VectorType enum depending on the given intValue.
 VecWord decipherWord(int word)
          This method is used to return a VecWord enum depending on the given intValue.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Decoder

public Decoder()
Konstruktor - setup the arrays.

Method Detail

decipherScalarRegister

public Processor.ScalarRegister decipherScalarRegister(int register)
This method is used to return a ScalarRegister enum depending on the given intValue.

Parameters:
register - - int
Returns:
ScalarRegister

decipherType

public ScalarType decipherType(int type)
This method is used to return a ScalarType enum depending on the given intValue.

Parameters:
type - - int
Returns:
ScalarType

decipherWord

public VecWord decipherWord(int word)
This method is used to return a VecWord enum depending on the given intValue.

Parameters:
word - - int
Returns:
VecWord

decipherVectorType

public VectorType decipherVectorType(int type)
This method is used to return a VectorType enum depending on the given intValue.

Parameters:
type - - int
Returns:
VectorType

decipherJMP_NOPCommand

public Instruction decipherJMP_NOPCommand(int command)
This method is used to return a JMP_NOP-Instruction enum depending on the given intValue.

Parameters:
command - - int
Returns:
Instruction

decipherFLAGCommand

public Instruction decipherFLAGCommand(int command)
This method is used to return a FLAG-Instruction enum depending on the given intValue.

Parameters:
command - - int
Returns:
Instruction

decipherLOAD_STORECommand

public Instruction decipherLOAD_STORECommand(int command)
This method is used to return a LOAD-STORE-Instruction enum depending on the given intValue.

Parameters:
command - - int
Returns:
Instruction

decipherALUCommand

public Instruction decipherALUCommand(int command)
This method is used to return a SCALAR-ALU-Instruction enum depending on the given intValue.

Parameters:
command - - int
Returns:
Instruction