1 package com.sun.vlsi.chips.marina.test;
2 import com.sun.async.test.ChainControl;
5 * An item-counter which counts items that pass by in one of the
9 private final String dataChain, dataPath;
10 private final ChainControl cc;
11 public Counter(String cntrInst, String dataChain, ChainControl cc) {
12 this.dataChain = dataChain;
13 this.dataPath = dataChain+'.'+cntrInst;
16 /** Read a new value from the Counter */
17 public long getCount() {
18 cc.shift(dataChain, true, false);
20 // do nothing because I counter schematics don't yet exist
21 //long cnt = cc.getOutBits(dataPath).bitReverse().not().toLong();
23 /** Set counter value to zero */
24 public void clearCount() {