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);
+ }
+
}