more cleanup
[fleet.git] / src / edu / berkeley / fleet / dataflow / PunctuatorNode.java
1 package edu.berkeley.fleet.dataflow;
2 import edu.berkeley.fleet.loops.*;
3 import edu.berkeley.fleet.api.*;
4
5 public class PunctuatorNode extends Node {
6     private final long    punc;
7     private final Ship    ship  = dfg.pool.allocateShip("Counter");
8     public  final OutPort out   = new DockOutPort("out", ship.getDock("out"));
9     public  final InPort  val   = new DockInPort("in1",  ship.getDock("in1"));
10     public  final InPort  op    = new DockInPort("inOp", ship.getDock("inOp"), 0, new BitVector[] {
11             ship.getDock("inOp").getConstant("PASS_C2_V1"),
12             ship.getDock("inOp").getConstant("PASS_C2_V2") } );
13     public  final InPort  count;
14     public PunctuatorNode(DataFlowGraph dfg, long punc) {
15         super(dfg);
16         this.punc = punc;
17         this.count = new DockInPort("in2",  ship.getDock("in2"), 0, new BitVector[] { null, bv(1), bv(punc) });
18     }
19 }