edu.cmu.emulator.controlComm
Class MiscCommandMessage

java.lang.Object
  extended by edu.cmu.emulator.controlComm.CMessage
      extended by edu.cmu.emulator.controlComm.TupleMessage
          extended by edu.cmu.emulator.controlComm.MiscCommandMessage

public class MiscCommandMessage
extends TupleMessage


Field Summary
protected  int filledTuples
           
static int MCT_CW_INPUT
           
static int MCT_CW_OUTPUT
           
static int MCT_LOG_REQUEST
           
static int MCT_RESET
           
static int MCT_SET_COL_ACTIVE_DELAY
           
static int MCT_SET_COL_VICTIM_AGGRESSOR
           
protected static int O_CMD_TYPE
           
protected static int O_DATA_A
           
protected static int O_DATA_B
           
protected static int O_DATA_C
           
 
Fields inherited from class edu.cmu.emulator.controlComm.TupleMessage
I_NUM_TUPLES, I_TUPLE_0, TUPLE_SIZE
 
Fields inherited from class edu.cmu.emulator.controlComm.CMessage
D_AUX_FPGA, I_BODY, I_DEST, I_SOURCE, I_TYPE, MAX_LENGTH, msg, S_EMU_CONTROLLER, T_DCC_LOCAL, T_MISC_COMMAND, T_READ_REG, T_REG_VALUE, T_SET_DELAY, T_SET_PHASE_SHIFT, T_SET_SCALE, T_SET_TIMED_SCALE, T_STORE_SIGNAL, T_TEST, T_WRITE_REG
 
Constructor Summary
MiscCommandMessage(int numTuples)
           
 
Method Summary
 void addCommandSet(int cmdType, int dataA, int dataB)
           
 void addCommandSet(int cmdType, int dataA, int dataB, int dataC)
           
(package private)  byte[] getBytes()
           
private  int getDataA(int tupleNum)
           
private  int getDataB(int tupleNum)
           
private  int getDataC(int tupleNum)
           
 int getNumTuples()
           
private  int getType(int tupleNum)
           
 String toString()
           
 
Methods inherited from class edu.cmu.emulator.controlComm.CMessage
getByte, getDest, getLength, getSource, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

filledTuples

protected int filledTuples

O_CMD_TYPE

protected static final int O_CMD_TYPE
See Also:
Constant Field Values

O_DATA_A

protected static final int O_DATA_A
See Also:
Constant Field Values

O_DATA_B

protected static final int O_DATA_B
See Also:
Constant Field Values

O_DATA_C

protected static final int O_DATA_C
See Also:
Constant Field Values

MCT_CW_OUTPUT

public static final int MCT_CW_OUTPUT
See Also:
Constant Field Values

MCT_CW_INPUT

public static final int MCT_CW_INPUT
See Also:
Constant Field Values

MCT_RESET

public static final int MCT_RESET
See Also:
Constant Field Values

MCT_SET_COL_VICTIM_AGGRESSOR

public static final int MCT_SET_COL_VICTIM_AGGRESSOR
See Also:
Constant Field Values

MCT_SET_COL_ACTIVE_DELAY

public static final int MCT_SET_COL_ACTIVE_DELAY
See Also:
Constant Field Values

MCT_LOG_REQUEST

public static final int MCT_LOG_REQUEST
See Also:
Constant Field Values
Constructor Detail

MiscCommandMessage

public MiscCommandMessage(int numTuples)
Method Detail

getNumTuples

public int getNumTuples()

getBytes

byte[] getBytes()
Overrides:
getBytes in class CMessage

addCommandSet

public void addCommandSet(int cmdType,
                          int dataA,
                          int dataB)

addCommandSet

public void addCommandSet(int cmdType,
                          int dataA,
                          int dataB,
                          int dataC)

getType

private int getType(int tupleNum)

getDataA

private int getDataA(int tupleNum)

getDataB

private int getDataB(int tupleNum)

getDataC

private int getDataC(int tupleNum)

toString

public String toString()
Overrides:
toString in class CMessage


Copyright © 2013. All Rights Reserved.