1 package edu.berkeley.fleet.dataflow;
3 import edu.berkeley.fleet.loops.*;
4 import edu.berkeley.fleet.api.*;
6 public class DownCounterNode extends Node {
7 private final Ship ship = dfg.pool.allocateShip("Counter");
8 private final InPort inOp = new DockInPort("inOp", ship.getDock("inOp"), 0, new BitVector[] {
9 ship.getDock("inOp").getConstant("COUNT") });
11 public final InPort start = new DockInPort("start", ship.getDock("in1"));
12 public final InPort incr = new DockInPort("incr", ship.getDock("in2"));
13 public final OutPort out = new DockOutPort("out", ship.getDock("out"));
15 public DownCounterNode(DataFlowGraph dfg) { super(dfg); }