org.mythsim.core
Class ControlWord

java.lang.Object
  |
  +--org.mythsim.core.ControlWord

public class ControlWord
extends Object

A Control Word.


Field Summary
static int A_SEL
           
static int A_SEL_SET
           
static int ADDRESS
           
static int ADDRESS_FALSE
           
static int ADDRESS_FALSE_SET
           
static int ADDRESS_SET
           
static int ADDRESS_TRUE
           
static int ADDRESS_TRUE_SET
           
static int ALU_SEL
           
static int ALU_SEL_SET
           
static String[] alu_value
           
static int B_SEL
           
static int B_SEL_SET
           
static int C_IN
           
static int C_IN_SET
           
static int COND
           
static int COND_SET
           
static String[] cond_value
           
static String[] control_line_value
           
static int CONTROL_WORD_LENGTH
           
static int INDEX_SEL
           
static int INDEX_SEL_SET
           
static String[] ir_value
           
static int IR0_SEL
           
static int IR0_SEL_SET
           
static int IR1_SEL
           
static int IR1_SEL_SET
           
static int MAR_SEL
           
static int MAR_SEL_SET
           
static String[] mar_value
           
static int MDR_SEL
           
static int MDR_SEL_SET
           
static String[] mdr_value
           
static int R0_WRITE
           
static int R0_WRITE_SET
           
static int R1_WRITE
           
static int R1_WRITE_SET
           
static int R2_WRITE
           
static int R2_WRITE_SET
           
static int R3_WRITE
           
static int R3_WRITE_SET
           
static int R4_WRITE
           
static int R4_WRITE_SET
           
static int R5_WRITE
           
static int R5_WRITE_SET
           
static int R6_WRITE
           
static int R6_WRITE_SET
           
static int R7_WRITE
           
static int R7_WRITE_SET
           
static int READ
           
static int READ_SET
           
static int RESULT_SEL
           
static int RESULT_SEL_SET
           
static String[] result_value
           
static int RI_SEL
           
static int RI_SEL_SET
           
static int RJ_SEL
           
static int RJ_SEL_SET
           
static int RK_SEL
           
static int RK_SEL_SET
           
static int WRITE
           
static int WRITE_SET
           
 
Constructor Summary
ControlWord()
          creates an empty control word
 
Method Summary
 String address()
           
 int get(int index)
           
 String getFalseLabel()
           
 int getLineNumber()
           
 String getTrueLabel()
           
 boolean isSet(int index)
           
 String label()
           
 String line()
           
 void print_addr()
           
 void print()
           
 void print(int index)
           
 void print(String a)
           
 void printAddress()
           
static void printHead()
           
 boolean resolve_addr(String[] a)
           
 void set(int index)
           
 void set(int index, int value)
           
 void setAddress(int a)
           
 void setFalseLabel(String s)
           
 void setLabel(String s)
           
 void setLineNumber(int i)
           
 void setTrueLabel(String s)
           
 int[] toArray()
           
 boolean validFalseLabel()
           
 boolean validTrueLabel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

R0_WRITE

public static final int R0_WRITE
See Also:
Constant Field Values

R1_WRITE

public static final int R1_WRITE
See Also:
Constant Field Values

R2_WRITE

public static final int R2_WRITE
See Also:
Constant Field Values

R3_WRITE

public static final int R3_WRITE
See Also:
Constant Field Values

R4_WRITE

public static final int R4_WRITE
See Also:
Constant Field Values

R5_WRITE

public static final int R5_WRITE
See Also:
Constant Field Values

R6_WRITE

public static final int R6_WRITE
See Also:
Constant Field Values

R7_WRITE

public static final int R7_WRITE
See Also:
Constant Field Values

A_SEL

public static final int A_SEL
See Also:
Constant Field Values

B_SEL

public static final int B_SEL
See Also:
Constant Field Values

RI_SEL

public static final int RI_SEL
See Also:
Constant Field Values

RJ_SEL

public static final int RJ_SEL
See Also:
Constant Field Values

RK_SEL

public static final int RK_SEL
See Also:
Constant Field Values

C_IN

public static final int C_IN
See Also:
Constant Field Values

ALU_SEL

public static final int ALU_SEL
See Also:
Constant Field Values

MDR_SEL

public static final int MDR_SEL
See Also:
Constant Field Values

MAR_SEL

public static final int MAR_SEL
See Also:
Constant Field Values

RESULT_SEL

public static final int RESULT_SEL
See Also:
Constant Field Values

IR0_SEL

public static final int IR0_SEL
See Also:
Constant Field Values

IR1_SEL

public static final int IR1_SEL
See Also:
Constant Field Values

READ

public static final int READ
See Also:
Constant Field Values

WRITE

public static final int WRITE
See Also:
Constant Field Values

INDEX_SEL

public static final int INDEX_SEL
See Also:
Constant Field Values

COND

public static final int COND
See Also:
Constant Field Values

ADDRESS_TRUE

public static final int ADDRESS_TRUE
See Also:
Constant Field Values

ADDRESS_FALSE

public static final int ADDRESS_FALSE
See Also:
Constant Field Values

ADDRESS

public static final int ADDRESS
See Also:
Constant Field Values

R0_WRITE_SET

public static final int R0_WRITE_SET
See Also:
Constant Field Values

R1_WRITE_SET

public static final int R1_WRITE_SET
See Also:
Constant Field Values

R2_WRITE_SET

public static final int R2_WRITE_SET
See Also:
Constant Field Values

R3_WRITE_SET

public static final int R3_WRITE_SET
See Also:
Constant Field Values

R4_WRITE_SET

public static final int R4_WRITE_SET
See Also:
Constant Field Values

R5_WRITE_SET

public static final int R5_WRITE_SET
See Also:
Constant Field Values

R6_WRITE_SET

public static final int R6_WRITE_SET
See Also:
Constant Field Values

R7_WRITE_SET

public static final int R7_WRITE_SET
See Also:
Constant Field Values

A_SEL_SET

public static final int A_SEL_SET
See Also:
Constant Field Values

B_SEL_SET

public static final int B_SEL_SET
See Also:
Constant Field Values

RI_SEL_SET

public static final int RI_SEL_SET
See Also:
Constant Field Values

RJ_SEL_SET

public static final int RJ_SEL_SET
See Also:
Constant Field Values

RK_SEL_SET

public static final int RK_SEL_SET
See Also:
Constant Field Values

C_IN_SET

public static final int C_IN_SET
See Also:
Constant Field Values

ALU_SEL_SET

public static final int ALU_SEL_SET
See Also:
Constant Field Values

MDR_SEL_SET

public static final int MDR_SEL_SET
See Also:
Constant Field Values

MAR_SEL_SET

public static final int MAR_SEL_SET
See Also:
Constant Field Values

RESULT_SEL_SET

public static final int RESULT_SEL_SET
See Also:
Constant Field Values

IR0_SEL_SET

public static final int IR0_SEL_SET
See Also:
Constant Field Values

IR1_SEL_SET

public static final int IR1_SEL_SET
See Also:
Constant Field Values

READ_SET

public static final int READ_SET
See Also:
Constant Field Values

WRITE_SET

public static final int WRITE_SET
See Also:
Constant Field Values

INDEX_SEL_SET

public static final int INDEX_SEL_SET
See Also:
Constant Field Values

COND_SET

public static final int COND_SET
See Also:
Constant Field Values

ADDRESS_TRUE_SET

public static final int ADDRESS_TRUE_SET
See Also:
Constant Field Values

ADDRESS_FALSE_SET

public static final int ADDRESS_FALSE_SET
See Also:
Constant Field Values

ADDRESS_SET

public static final int ADDRESS_SET
See Also:
Constant Field Values

CONTROL_WORD_LENGTH

public static final int CONTROL_WORD_LENGTH
See Also:
Constant Field Values

alu_value

public static final String[] alu_value

mar_value

public static final String[] mar_value

mdr_value

public static final String[] mdr_value

result_value

public static final String[] result_value

ir_value

public static final String[] ir_value

cond_value

public static final String[] cond_value

control_line_value

public static final String[] control_line_value
Constructor Detail

ControlWord

public ControlWord()
creates an empty control word

Method Detail

get

public int get(int index)

isSet

public boolean isSet(int index)

set

public void set(int index)
         throws MythParserError
MythParserError

print

public void print(int index)

toArray

public int[] toArray()

line

public String line()

setAddress

public void setAddress(int a)

setLabel

public void setLabel(String s)

setTrueLabel

public void setTrueLabel(String s)

setFalseLabel

public void setFalseLabel(String s)

setLineNumber

public void setLineNumber(int i)

getLineNumber

public int getLineNumber()

getTrueLabel

public String getTrueLabel()

getFalseLabel

public String getFalseLabel()

address

public String address()

print

public void print(String a)

printAddress

public void printAddress()

label

public String label()

set

public void set(int index,
                int value)

printHead

public static void printHead()

print

public void print()

print_addr

public void print_addr()

resolve_addr

public boolean resolve_addr(String[] a)

validTrueLabel

public boolean validTrueLabel()

validFalseLabel

public boolean validFalseLabel()


Copyright © 2002-2004 Jason Vroustouris. All Rights Reserved.