--- /dev/null
+package edu.berkeley.fleet.two;
+
+/**
+ * A PercolatedPort is a connection to a top-level pin; it is
+ * propagated up or down the hierarchy
+ */
+public class PercolatedPort {
+ public static enum PortType { UP, DOWN, INOUT };
+ public final String name;
+ public final int width;
+ public final PortType type;
+ public PercolatedPort(String name, int width, PortType type) {
+ this.name = name;
+ this.width = width;
+ this.type = type;
+ }
+}
package edu.berkeley.fleet.two;
import edu.berkeley.fleet.api.*;
-//import edu.berkeley.fleet.fpga.verilog.Verilog.PercolatedPort;
import java.io.*;
import java.util.*;
return ports.values();
}
- //public final LinkedList<PercolatedPort> percolatedPorts = new LinkedList<PercolatedPort>();
+ public final LinkedList<PercolatedPort> percolatedPorts = new LinkedList<PercolatedPort>();
public ShipDescription(String name, BufferedReader r) throws IOException {
if (name.endsWith(".ship")) name = name.substring(0, name.length()-".ship".length());
else if (key.equals("in")) { inbox = true; }
else if (key.equals("dockless out")) { inbox = false; dockless = true; }
else if (key.equals("out")) { inbox = false; }
- /*
else if (key.startsWith("percolate")) {
key = s;
key = key.substring("percolate".length()+1).trim();
percolatedPorts.add(new PercolatedPort(name, width, type));
continue;
}
- */
else if (key.startsWith("constant")) {
String constname = key.substring("constant".length()+1).trim();
String val = s.substring(s.indexOf(':')+1).trim();