MarinaTest: use GPIOs on blue box for master clear (not updated in all places, though)
[fleet.git] / src / com / sun / vlsi / chips / marina / test / MarinaTest.java
index 42e3486..192a109 100644 (file)
@@ -234,7 +234,7 @@ public class MarinaTest {
             : cmdArgs.jtagShift
             ? 20000
             : model instanceof ChipModel
-            ? 1
+            ? 1000
             : 1000000;
 
         System.err.println("constructing jtag controller");
@@ -242,6 +242,15 @@ public class MarinaTest {
             model instanceof SimulationModel
             ? ((SimulationModel)model).createJtagTester("TCK", "TMS", "TRSTb", "TDI", "TDO")
             : new Netscan4("jtag3", 2);
+        if (tester instanceof Netscan4) {
+            ((Netscan4)tester).reset();
+            // master clear
+            // not sure if "GPIO1" means "index 0" or not
+            JtagLogicLevel mc0 = new JtagLogicLevel(tester, 0);
+            JtagLogicLevel mc1 = new JtagLogicLevel(tester, 1);
+            mc0.setLogicState(true);
+            mc1.setLogicState(true);
+        }
         Logger.setLogInits(true);
         tester.setLogSets(true);
         tester.setLogOthers(true);