add methods for frequency probe
authorrkao <rkao>
Sun, 23 Nov 2008 23:13:30 +0000 (23:13 +0000)
committerrkao <rkao>
Sun, 23 Nov 2008 23:13:30 +0000 (23:13 +0000)
testCode/com/sun/vlsi/chips/marina/test/Marina.java

index b23f00a..320a151 100644 (file)
@@ -235,4 +235,23 @@ public class Marina {
        for (int i=0; i<sz; i++) if (bv.get(i)) nbTok++;
        return nbTok;
     }
+    /** Configure the test probe so it measures the throughput of
+     * the north data FIFO. The test probe frequency is 8192 
+     * times slower than the FIFO throughput. This control has
+     * highest priority. */
+    public void probeDataCounter(Boolean b) {
+       data.setGeneralPurposeOutput(b);
+    }
+    /** Configure the test probe so it measures the throughput of
+     * the alternating instruction FIFO. The test probe frequency is
+     * 1/16384 of the FIFO throughput. This control has second
+     * highest priority. Thus the following two calls probe the
+     * instruction counter: 
+     *      probeDataCounter(false);
+     *      probeInstructionCounter(true)
+     */
+    public void enableInstructionCounter(Boolean b) {
+       instrIn.setGeneralPurposeOutput(b);
+    }
+    
 }