import com.sun.async.test.BitVector;
import com.sun.async.test.ChainControl;
+import com.sun.async.test.ChainG;
import com.sun.async.test.ChainTest;
import com.sun.async.test.ChipModel;
import com.sun.async.test.HP34401A;
ccs.addChain(Marina.CONTROL_CHAIN, ccC);
marina = new Marina(ccs, model, !cmdArgs.jtagShift, indenter);
+
+ //System.out.println("launching");
+ //ChainG.createAndShowGUI(marina.cc.getChainControlFromPath(Marina.REPORT_CHAIN));
+ //System.out.println(" launched.");
+
doOneTest(cmdArgs.testNum);
((SimulationModel)model).finish();
//=========================================================================
// Put top level tests here
+
+ private void testProperStoppers(Marina marina) {
+ prln("Begin testProperStoppers");
+ adjustIndent(2);
+
+ for(ProperStopper ps : new ProperStopper[] { marina.data, marina.instrIn }) {
+ prln("testing " + (ps == marina.data ? "data" : "instruction") + " stopper");
+ adjustIndent(2);
+ prln("getting status");
+ fatal( !ps.getStopped(), "stopper should have been stopped, but was not");
+ prln("un-stopping stopper");
+ ps.run();
+ prln("getting status");
+ fatal( ps.getStopped(), "stopper should not have been stopped, but was");
+ adjustIndent(-2);
+ }
+
+ adjustIndent(-2);
+ }
+
private void sendInstructions(Marina marina) {
prln("Begin sendInstructions");
adjustIndent(2);
marina.enableInstructionSend(true);
switch (testNum) {
+ case 1: testProperStoppers(marina); break;
case 2: sendInstructions(marina); break;
case 3: sendToken(marina); break;
case 4: getCtrsFlags(marina); break;