1 package net.mograsim.logic.ui.am2900;
3 public interface TestableAm2901
9 void setDest(Am2901_Dest dest);
11 void setFunc(Am2901_Func func);
13 void setSrc(Am2901_Src src);
15 void setReg_A(String val_4_bit);
17 void setReg_B(String val_4_bit);
19 void setCarryIn(String val_1_bit);
21 void setNotOutEnable(String val_1_bit);
23 void setD(String val_4_bit);
25 void setQ_0(String val_1_bit);
27 void setQ_3(String val_1_bit);
29 void setRAM_0(String val_1_bit);
31 void setRAM_3(String val_1_bit);
59 SUCCESS, OUT_OF_TIME, ERROR;
62 public enum Am2901_Dest
64 QREG, NOP, RAMA, RAMF, RAMQD, RAMD, RAMQU, RAMU;
66 public boolean doesShift()
68 return ordinal() >= 4;
71 public int getShiftDir()
73 return doesShift() ? (ordinal() < 6 ? -1 : 1) : 0;
78 return this.ordinal() >> 1 & 1;
82 public enum Am2901_Func
84 ADD, SUBR, SUBS, OR, AND, NOTRS, EXOR, EXNOR;
87 public enum Am2901_Src
89 AQ, AB, ZQ, ZB, ZA, DA, DQ, DZ;