-package edu.berkeley.fleet.marina;
-import com.sun.electric.tool.simulation.test.*;
-
-
-/**
- * An item-counter which counts items that pass by in one of the
- * circular fifos.
- */
-public class Counter {
- private final String dataChain, dataPath;
- private final ChainControl cc;
- public Counter(String cntrInst, String dataChain, ChainControl cc) {
- this.dataChain = dataChain;
- this.dataPath = dataChain+'.'+cntrInst;
- this.cc = cc;
- }
- /** Read a new value from the Counter */
- public long getCount() {
- cc.shift(dataChain, true, false);
- return 0;
- // do nothing because I counter schematics don't yet exist
- //long cnt = cc.getOutBits(dataPath).bitReverse().not().toLong();
- }
- /** Set counter value to zero */
- public void clearCount() {
-
- }
-
-}