enforce ordering on percolated ports
authoradam <adam@megacz.com>
Sun, 16 Nov 2008 06:47:51 +0000 (07:47 +0100)
committeradam <adam@megacz.com>
Sun, 16 Nov 2008 06:47:51 +0000 (07:47 +0100)
src/edu/berkeley/fleet/fpga/verilog/Verilog.java

index 17e447b..bbf8c1e 100644 (file)
@@ -163,7 +163,10 @@ public class Verilog {
         public String getName() { return name; }
         public Port getPort(String name) { return ports.get(name); }
 
-        public HashSet<InstantiatedModule> instantiatedModules = new HashSet<InstantiatedModule>();
+        // order matters here
+        public LinkedList<InstantiatedModule> instantiatedModules = new LinkedList<InstantiatedModule>();
+
+        // order matters here
         public LinkedList<PercolatedPort> percolatedPorts = new LinkedList<PercolatedPort>();
         public final ArrayList<Event> events = new ArrayList<Event>();