1
0
Baglio Tabifata 5 жил өмнө
parent
commit
38847ee311

+ 4 - 6
src/main/java/info/hkzlab/dupal/analyzer/palanalisys/explorers/OSExplorer.java

@@ -98,15 +98,13 @@ public class OSExplorer {
 
         if(!pulseClock) { // Normal Link
             dpci.write(w_idx);
-            pinState_A = dpci.read();
-            dpci.write(w_idx | pSpecs.getMask_O_W() | ioAsOut_W); // Try to force the outputs
-            pinState_B = dpci.read();
         } else { // Pulse the clock
             dpci.writeAndPulseClock(w_idx);
-            pinState_A = dpci.read();
-            dpci.write(w_idx | pSpecs.getMask_O_W() | ioAsOut_W); // Try to force the outputs
-            pinState_B = dpci.read();
         }
+        
+        pinState_A = dpci.read();
+        dpci.write(w_idx | pSpecs.getMask_O_W() | ioAsOut_W); // Try to force the outputs
+        pinState_B = dpci.read();
 
         // Check that the IOs that we consider as inputs are actually inputs, and are not remaining set to other values (which would mean they're actually outputs)
         int io_in_r = BitUtils.consolidateBitField(pinState_A, pSpecs.getMask_IO_R() & ~ioAsOutMask);