projects
/
fleet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8dd134a
)
add Gadgets.dispatch()
author
megacz
<adam@megacz.com>
Thu, 12 Mar 2009 22:22:09 +0000
(15:22 -0700)
committer
megacz
<adam@megacz.com>
Thu, 12 Mar 2009 22:22:09 +0000
(15:22 -0700)
src/edu/berkeley/fleet/ir/Gadgets.java
patch
|
blob
|
history
diff --git
a/src/edu/berkeley/fleet/ir/Gadgets.java
b/src/edu/berkeley/fleet/ir/Gadgets.java
index
f45b63d
..
06246cd
100644
(file)
--- a/
src/edu/berkeley/fleet/ir/Gadgets.java
+++ b/
src/edu/berkeley/fleet/ir/Gadgets.java
@@
-221,6
+221,14
@@
public class Gadgets {
return merger.getDock("out");
}
return merger.getDock("out");
}
+ public static void dispatch(FleetProcess fp, Context ctx) {
+ ArrayList<Instruction> ai;
+ ctx.emit(ai = new ArrayList<Instruction>());
+ for(Instruction ins : ai) {
+ fp.sendInstruction(ins);
+ }
+ }
+
public static void main(String[] s) throws Exception {
Random random = new Random(System.currentTimeMillis());
Fleet fleet = new Fpga();
public static void main(String[] s) throws Exception {
Random random = new Random(System.currentTimeMillis());
Fleet fleet = new Fpga();