prln("End recvData");
}
+
private void setOlcFromDataLatch(Marina marina) {
prln("Begin setOlcFromDataLatch");
adjustIndent(2);
prln("inserting set ilc=1");
marina.instrIn.fill(new Instruction.Set(DOCK,false,Predicate.IgnoreOLC,SetDest.InnerLoopCounter,1));
- /*
+ // commenting the following four lines causes this test to pass
prln("disabling instruction send");
marina.enableInstructionSend(false);
prln("enabling instruction recirculate");
marina.enableInstructionRecirculate(true);
- */
prln("inserting "+decr_amount+" olc-- instructions");
for(int i=0; i<decr_amount; i++)
prln("enabling instruction send");
marina.enableInstructionSend(true);
+ prln("calling marina.instrIn.run()");
+ marina.instrIn.run();
+
int expected = decr_amount>=olc ? 0 : 1;
dataItems = marina.data.drainMany(2);
fatal(dataItems.size()!=expected, "Expected "+expected+" item to emerge but got: "+dataItems.size()+" data items");