فهرست منبع

Change format of the output a bit

Baglio Tabifata 4 سال پیش
والد
کامیت
8cec1ee2a8
2فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 4 3
      src/net/hkzlab/dupal/App.java
  2. 1 1
      src/net/hkzlab/dupal/boardio/DuPALAnalyzer.java

+ 4 - 3
src/net/hkzlab/dupal/App.java

@@ -14,10 +14,11 @@ public class App {
 
 
     public static void main(String[] args) throws Exception {
     public static void main(String[] args) throws Exception {
         DuPALManager dpm = new DuPALManager("/dev/ttyUSB0");
         DuPALManager dpm = new DuPALManager("/dev/ttyUSB0");
-        // PALSpecs pspecs = new PAL16R6Specs();
-        PALSpecs pspecs = new PAL16R4Specs();
+         PALSpecs pspecs = new PAL16R6Specs();
+        //PALSpecs pspecs = new PAL16R4Specs();
         // DuPALAnalyzer dpan = new DuPALAnalyzer(dpm, pspecs);
         // DuPALAnalyzer dpan = new DuPALAnalyzer(dpm, pspecs);
-        DuPALAnalyzer dpan = new DuPALAnalyzer(dpm, pspecs, 0x80, "/tmp/dupal.dmp");
+        DuPALAnalyzer dpan = new DuPALAnalyzer(dpm, pspecs, -1, "/tmp/dupal.dmp");
+        //DuPALAnalyzer dpan = new DuPALAnalyzer(dpm, pspecs, 0x80, "/tmp/dupal.dmp");
 
 
         if(!dpm.enterRemoteMode()) {
         if(!dpm.enterRemoteMode()) {
             System.out.println("Unable to enter remote mode!");
             System.out.println("Unable to enter remote mode!");

+ 1 - 1
src/net/hkzlab/dupal/boardio/DuPALAnalyzer.java

@@ -528,7 +528,7 @@ public class DuPALAnalyzer {
         strBuf.delete(0, strBuf.length()); 
         strBuf.delete(0, strBuf.length()); 
         strBuf.append(".ilb ");
         strBuf.append(".ilb ");
         for(int idx = 0; idx < specs.getNumROUTPins(); idx++) {
         for(int idx = 0; idx < specs.getNumROUTPins(); idx++) {
-            strBuf.append(specs.getROUT_PinNames()[idx]+"_old ");
+            strBuf.append("o_"+specs.getROUT_PinNames()[idx]+" ");
         }
         }
         for(int idx = 0; idx < specs.getNumINPins(); idx++) {
         for(int idx = 0; idx < specs.getNumINPins(); idx++) {
             strBuf.append(specs.getIN_PinNames()[idx]+" ");
             strBuf.append(specs.getIN_PinNames()[idx]+" ");