refactor codebag-memory-block creation code
[fleet.git] / src / edu / berkeley / fleet / fpga / Fpga.java
index e2f679e..06bf207 100644 (file)
@@ -56,12 +56,7 @@ public class Fpga extends FleetTwoFleet {
 
     public FleetProcess run(Instruction[] instructions) {
         try {
-            ByteArrayOutputStream baos = new ByteArrayOutputStream();
-            DataOutputStream dos = new DataOutputStream(baos);
-            for(Instruction i : instructions)
-                writeInstruction(dos, getUniversalSource(), i);
-            dos.flush();
-            return new Client("none", baos.toByteArray());
+            return new Client(this, "none", instructions);
         } catch (Exception e) { throw new RuntimeException(e); }
     }