remove unused code in Marina tests
[fleet.git] / src / edu / berkeley / fleet / marina / Counter.java
1 package edu.berkeley.fleet.marina;
2 import com.sun.electric.tool.simulation.test.*;
3
4
5 /**
6  *  An item-counter which counts items that pass by in one of the
7  *  circular fifos.
8  */
9 public class Counter {
10     private final String dataChain, dataPath;
11     private final ChainControl cc;
12     public Counter(String cntrInst, String dataChain, ChainControl cc) {
13         this.dataChain = dataChain;
14         this.dataPath = dataChain+'.'+cntrInst;
15         this.cc = cc;
16     }
17     /** Read a new value from the Counter */
18     public long getCount() {
19         cc.shift(dataChain, true, false);
20         return 0;
21         // do nothing because I counter schematics don't yet exist
22         //long cnt = cc.getOutBits(dataPath).bitReverse().not().toLong();
23     }
24     /** Set counter value to zero */
25     public void clearCount() {
26                 
27     }
28         
29 }