marina.instrIn.fill(
new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
null, /* path */
false, /* tokenIn */
prln("ILC=1");
marina.instrIn.fill(
- new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, 1));
+ new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, 1));
getCtrsFlags(marina);
marina.instrIn.fill(
new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
null, /* path */
false, /* tokenIn */
prln("ILC=\\infty");
marina.instrIn.fill(
- new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter,SetSource.Infinity));
+ new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter,SetSource.Infinity));
getCtrsFlags(marina);
private void setOLC(Marina marina, int olc) {
// ugly hack, to be removed when we fix the zero-detect circuit
for(int i=0; i<2; i++) {
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.OuterLoopCounter, olc));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter, olc));
}
}
List<BitVector> toks;
- Predicate only_if_olc_zero = Predicate.OLCZero;
+ Predicate only_if_olc_zero = Predicate.FlagD;
Predicate only_if_olc_nonzero = Predicate.Default;
for(int olc : new int[] { 1, 0 }) {
for(boolean flag_a : new boolean[] { false, true }) {
for(boolean flag_b : new boolean[] { false, true }) {
prln("Setting flags, a="+flag_a+" b="+flag_b);
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,
flag_a
? Instruction.Set.FlagFunction.ONE
: Instruction.Set.FlagFunction.ZERO,
prln("Attempting send data with a="+flag_a+", b="+flag_b+", predicate="+predicate.getClass().getName());
adjustIndent(2);
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, 1));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, 1));
marina.instrIn.fill(new Instruction.Move(DOCK,
false, /* requeueing */
predicate, /* predicate */
int inOlc = 0x20 >> i;
prln("Set inOlc="+inOlc);
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.OuterLoopCounter, inOlc));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter, inOlc));
int outOlc = marina.getOLC();
fatal(outOlc!=inOlc, "walkOneOLC: got="+outOlc+" expected="+inOlc);
}
prln("inIlc="+inIlc);
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, inIlc));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, inIlc));
Ilc ilc = marina.getILC();
int outIlc = ilc.getCount();
}
prln("Now test the infinity bit");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, SetSource.Infinity));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, SetSource.Infinity));
Ilc ilc = marina.getILC();
fatal(!ilc.getInfinity(), "bad Infinity bit: false");
adjustIndent(-2);
prln("Set ILC=63");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, maxIlc));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, maxIlc));
int ilc = marina.getILC().getCount();
fatal(ilc!=maxIlc, "bad ILC count: "+ilc+" expected: "+maxIlc);
marina.instrIn.fill(
new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
null, /* path */
false, /* tokenIn */
adjustIndent(2);
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.OuterLoopCounter, maxOlc));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter, maxOlc));
for (int i=maxOlc; i>=0; i--) {
prln("OLC should be: "+i);
int olc = marina.getOLC();
fatal(olc!=i, "bad OLC: "+olc+" expected: "+i);
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.OuterLoopCounter, SetSource.Decrement));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter, SetSource.Decrement));
}
adjustIndent(-2);
private static final Instruction NOP =
new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
null, /* path */
false, /* tokenIn */
private static final Instruction REQUEUEING_NOP =
new Instruction.Move(DOCK,
true, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
null, /* path */
false, /* tokenIn */
private static final Instruction SEND_DATA =
new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
null, /* path */
false, /* tokenIn */
private static final Instruction RECV_DATA =
new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
null, /* path */
false, /* tokenIn */
private static final Instruction SEND_TOKEN =
new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
null, /* path */
false, /* tokenIn */
private static final Instruction RECV_TOKEN =
new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
null, /* path */
true, /* tokenIn */
private static final Instruction REQUEUEING_SEND_DATA =
new Instruction.Move(DOCK,
true, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
null, /* path */
false, /* tokenIn */
prln("Executing Set OLC="+olc_value);
setOLC(marina, olc_value);
prln("Executing Set ILC=1");
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, 1));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, 1));
// verify state0 "EPI->ring" and 0->1 transition
prln("Executing Send Data (requeueable); this will cause 0->1 transition and be discarded");
// verify state1 "EPI->ring"
prln("Executing Set ILC=1; this will be recirculated");
- marina.instrIn.fill(new Instruction.Set(DOCK,true,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, 1));
+ marina.instrIn.fill(new Instruction.Set(DOCK,true,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, 1));
prln("Executing Send Data; this will be recirculated");
marina.instrIn.fill(REQUEUEING_SEND_DATA);
prln("Executing Set OLC--; this will be recirculated");
- marina.instrIn.fill(new Instruction.Set(DOCK,true,Predicate.IgnoreOLC,SetDest.OuterLoopCounter,SetSource.Decrement));
+ marina.instrIn.fill(new Instruction.Set(DOCK,true,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter,SetSource.Decrement));
// verify state1 "OD waits"
dataItems = marina.data.drainMany(2);
setOLC(marina, olc_value);
prln("Executing Set ILC=1");
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, 1));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, 1));
// insert many non-requeueing "send data item" instructions;
// this will let us single-step the execution point by
marina.instrIn.fill(REQUEUEING_SEND_DATA);
prln("Inserting [Rq] Set OLC--; this will be recirculated");
- marina.instrIn.fill(new Instruction.Set(DOCK,true,Predicate.IgnoreOLC,SetDest.OuterLoopCounter,SetSource.Decrement));
+ marina.instrIn.fill(new Instruction.Set(DOCK,true,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter,SetSource.Decrement));
// insert the tail, which will cause the 0->2 transition
prln("Inserting Tail");
}
prln("inserting instruction: [Rq] Set ILC=1");
- marina.instrIn.fill(new Instruction.Set(DOCK,true,Predicate.IgnoreOLC,SetDest.InnerLoopCounter,1));
+ marina.instrIn.fill(new Instruction.Set(DOCK,true,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter,1));
prln("inserting instruction: [Rq] Send Data");
marina.instrIn.fill(REQUEUEING_SEND_DATA);
setOLC(marina, 63);
prln("inserting instruction: Set ILC=1");
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter,1));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter,1));
// if you uncomment this, then the NOP will be dropped and the test will pass
//prln("inserting instruction: [Rq] Nop; this will cause 0->1 transition and possibly be discarded");
marina.instrIn.fill(REQUEUEING_SEND_DATA);
prln("inserting instruction: [Rq] Set ILC=1");
- marina.instrIn.fill(new Instruction.Set(DOCK,true,Predicate.IgnoreOLC,SetDest.InnerLoopCounter,1));
+ marina.instrIn.fill(new Instruction.Set(DOCK,true,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter,1));
prln("inserting instruction: Tail");
marina.instrIn.fill(new Instruction.Tail(DOCK));
prln((b?"Setting":"Clearing")+" flags");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,
b ? one : zero,
b ? one : zero
));
// set A,B flags to a_state and b_state
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,
a_state ? one : zero,
b_state ? one : zero
));
if (c_input!=null) func = func.add(c_input);
Instruction inst = new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,
!which ? func : zero.add(Predicate.FlagA),
which ? func : zero.add(Predicate.FlagB)
);
prln("Begin recvData");
adjustIndent(2);
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC, CLEAR_FLAG, CLEAR_FLAG));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD, CLEAR_FLAG, CLEAR_FLAG));
marina.instrIn.fill(new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
true, /* torpedoable */
null, /* path */
false, /* tokenIn */
false, /* dataOut */
false /* tokenOut */
));
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC, SET_FLAG, SET_FLAG));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD, SET_FLAG, SET_FLAG));
prln("checking to confirm that A flag is cleared");
fatal(marina.getFlagA(), "bad A flag: "+marina.getFlagA());
marina.instrIn.fill(new Instruction.Move(DOCK,
false, // requeueing
- Predicate.IgnoreOLC, // predicate
+ Predicate.IgnoreFlagD, // predicate
true, // torpedoable
null, // path
false, // tokenIn
marina.fillNorthProperStopper(new MarinaPacket(data, false, addr));
marina.instrIn.fill(RECV_DATA);
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.OuterLoopCounter,SetSource.DataLatch));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter,SetSource.DataLatch));
int olc = marina.getOLC();
fatal(olc != (1<<bit), "expected olc to be " + (1<<bit) + ", but got " + olc);
data.set(bit, true);
marina.fillNorthProperStopper(new MarinaPacket(data, false, addr));
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter,1));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter,1));
marina.instrIn.fill(RECV_DATA);
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter,SetSource.DataLatch));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter,SetSource.DataLatch));
int ilc = marina.getILC().getCount();
fatal(ilc != (1<<bit), "expected ilc to be " + (1<<bit) + ", but got " + ilc);
for(long val : new long[] { -1, 0, 1, (-1L << 14) }) {
prln("inserting Set Data Latch (sign-extended) 37'b" + Long.toString(val, 1));
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,
Instruction.Set.SetDest.DataLatch,
val));
adjustIndent(2);
prln("clearing the D register");
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,
Instruction.Set.SetDest.DataLatch,
0));
new edu.berkeley.fleet.api.BitVector(19);
for(int i=0; i<immediate.length(); i++)
immediate.set(i, (val & (1L << i)) != 0);
- marina.instrIn.fill(new Instruction.Shift(DOCK,false,Predicate.IgnoreOLC,immediate));
+ marina.instrIn.fill(new Instruction.Shift(DOCK,false,Predicate.IgnoreFlagD,immediate));
// shift over 19 LSB's towards MSB
for(int i=0; i<19; i++)
marina.fillNorthProperStopper(new MarinaPacket(data, false, addr));
prln("clearing flags");
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC, CLEAR_FLAG, CLEAR_FLAG));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD, CLEAR_FLAG, CLEAR_FLAG));
prln("executing recv data with Dc="+dc);
marina.instrIn.fill(new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
true, /* torpedoable */
null, /* path */
false, /* tokenIn */
));
prln("copying c-flag to a-flag");
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,
Instruction.Set.FlagFunction.ZERO.add(Predicate.FlagC),
CLEAR_FLAG
));
prln("send data with path="+bv);
marina.instrIn.fill(new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
path, /* path */
false, /* tokenIn */
prln("send data with no change to path");
marina.instrIn.fill(new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
null, /* path */
false, /* tokenIn */
prln("recv path, send data (using recv'd path)");
marina.instrIn.fill(new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
false, /* torpedoable */
null, /* path */
false, /* tokenIn */
int ilc = bit<0 ? 0 : (1<<bit);
prln("set ilc="+ilc);
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter,ilc));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter,ilc));
prln("send data");
marina.instrIn.fill(SEND_DATA);
prln("Set OLC = 1");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.OuterLoopCounter, 1));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter, 1));
int olc = marina.getOLC();
fatal(olc!=1, "bad OLC: "+olc+" expected: 1");
prln("Set A=0, B=0");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC, CLEAR_FLAG, CLEAR_FLAG));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD, CLEAR_FLAG, CLEAR_FLAG));
fatal(marina.getFlagA(), "bad A flag: true");
fatal(marina.getFlagB(), "bad B flag: true");
prln("Set ILC = Infinity");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, SetSource.Infinity));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, SetSource.Infinity));
prln("execute a move instruction that does nothing but loops until torpedo arrives");
marina.instrIn.fill(
new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
true, /* torpedoable */
null, /* path */
false, /* tokenIn */
prln("OLC = 63. Reload OLC after torpedo");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.OuterLoopCounter, 63));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter, 63));
olc = marina.getOLC();
fatal(olc!=63, "bad OLC: "+olc+" expected: 63");
for(boolean torpedoable : new boolean[] { true, false }) {
prln("set ilc=\\infty");
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter,SetSource.Infinity));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter,SetSource.Infinity));
prln("nop");
marina.instrIn.fill(new Instruction.Move(DOCK,
false, /* requeueing */
- Predicate.IgnoreOLC, /* predicate */
+ Predicate.IgnoreFlagD, /* predicate */
torpedoable, /* torpedoable */
null, /* path */
false, /* tokenIn */
int decr_amount = decr_amounts[which];
prln("inserting set olc="+olc);
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.OuterLoopCounter,olc));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter,olc));
prln("inserting set ilc=1");
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter,1));
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter,1));
// commenting the following four lines causes this test to pass
prln("disabling instruction send");
prln("inserting "+decr_amount+" olc-- instructions");
for(int i=0; i<decr_amount; i++)
- marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,
+ marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,
SetDest.OuterLoopCounter,SetSource.Decrement));
prln("inserting [olc!=0] send data");
int notZero = 32 >> i;
prln("Set ILC=0");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, 0));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, 0));
prln("Then immediately set ILC="+notZero);
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, notZero));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, notZero));
prln("Verify ILC using scan chain");
Ilc ilc = marina.getILC();
prln("Set ILC="+notZero);
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, notZero));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, notZero));
prln("Then immediately set ILC=0");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter, 0));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.InnerLoopCounter, 0));
prln("Verify ILC using scan chain");
ilc = marina.getILC();
prln("Set A=0, B=0");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC, CLEAR_FLAG, CLEAR_FLAG));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD, CLEAR_FLAG, CLEAR_FLAG));
for (int i=0; i<6; i++) {
int notZero = 32 >> i;
prln("Set OLC=0");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.OuterLoopCounter, 0));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter, 0));
prln("Then immediately set OLC="+notZero);
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.OuterLoopCounter, notZero));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter, notZero));
prln("Verify OLC count using scan chain");
int outOlc = marina.getOLC();
prln("Verify OLC zero bit using predication");
prln("if (OLC==0) {A=1; B=1;} // should not get executed");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.OLCZero, SET_FLAG, SET_FLAG));
+ Instruction.Set(DOCK,false,Predicate.FlagD, SET_FLAG, SET_FLAG));
fatal(marina.getFlagA(), "bad A flag. expected: false");
prln("Set OLC="+notZero);
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.OuterLoopCounter, notZero));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter, notZero));
prln("Then immediately set OLC=0");
marina.instrIn.fill(new
- Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.OuterLoopCounter, 0));
+ Instruction.Set(DOCK,false,Predicate.IgnoreFlagD,SetDest.OuterLoopCounter, 0));
prln("Verify OLC count using scan chain");
outOlc = marina.getOLC();