1 package edu.berkeley.slipway.gui;
3 import com.atmel.fpslic.*;
4 import static com.atmel.fpslic.FpslicConstants.*;
5 import edu.berkeley.slipway.*;
7 import java.awt.geom.*;
8 import java.awt.event.*;
9 import java.awt.color.*;
10 import org.ibex.util.*;
15 public class GuiConstants {
16 public static int SIZE = 92;
17 public static int RINGS = 3;
18 public static int BEVEL = 5;
19 public static int CORE_SIZE = 64;
20 public static int CORE_OFFSET = 10;
21 public static int HOFF = 52;
23 public static int RED = 0xff0000;
24 public static int BLUE = 0x0000ff;
25 //public static int LIGHTRED = 0xff0000;
26 //public static int LIGHTBLUE = 0x0000ff;
27 public static int LIGHTRED = 0xffbbbb;
28 public static int LIGHTBLUE = 0xbbbbff;
29 public static int GREEN = 0x006b33;
30 public static int WHITE = 0xffffff;
31 public static int BLACK = 0x000000;
32 public static int ORANGE = 0xff7f00;
33 public static int MAGENTA = 0xff00ff;
35 public static final P YLUT_OUTPUT_POINT = new P(SIZE-CORE_OFFSET-CORE_SIZE+51 - 2, CORE_OFFSET + 41 - 3);
36 public static final P XLUT_OUTPUT_POINT = new P(SIZE-CORE_OFFSET-CORE_SIZE+17 - 2, CORE_OFFSET + 41 - 3);
38 public static final String[] XLUT_EQUATIONS = new String[] {
61 "~t (~x y + x ~y) + t ~x ~y",
62 "~t (~x + ~y) + ~x ~y",
69 "~t (x + y) + t ~x ~y",
93 "~y (t + x) + ~t ~x y",
125 "~x (t + y) + ~t x ~y",
143 "t (~x y + x ~y) + ~t x y",
144 "t (~x y + x ~y) + ~t x y",
145 "x (~t + ~y) + t ~x y",
146 "x (~t + ~y) + t ~x y",
147 "y (~t + ~x) + t x ~y",
148 "y (~t + ~x) + t x ~y",
159 "t (~x + ~y) + ~t x y",
160 "t (~x + ~y) + ~t x y",
165 "~(~t ~x ~y + t x y)",
173 "~t (~x + ~y) + t x y",
174 "~(t (~x + ~y) + ~t x y)",
185 "~y (~t + ~x) + t x y",
186 "~(y (~t + ~x) + t x ~y)",
187 "~x (~t + ~y) + t x y",
188 "~(x (~t + ~y) + t ~x y)",
189 "~(t (~x y + x ~y) + ~t x y)",
190 "~(t (~x y + x ~y) + ~t x y)",
197 "~(t (~x y + x ~y))",
198 "~(t (~x y + x ~y))",
208 "~(~x (t + y) + ~t x ~y)",
221 "~(y (~t x + t ~x))",
222 "~(y (~t x + t ~x))",
228 "~(~t x ~y + t ~x y)",
240 "~(~y (t + x) + ~t ~x y)",
253 "~(x (~t y + t ~y))",
254 "~(x (~t y + t ~y))",
258 "~(t x ~y + ~t ~x y)",
264 "~(~t (x + y) + t ~x ~y)",
270 "~(t ~x ~y + ~t x y)",
272 "~(~t (~x y + x ~y) + t ~x ~y)",
274 "~(~x (~t y + t ~y))",
276 "~(~y (~t x + t ~x))",
288 "~(~t (~x y + x ~y))",
297 public static final String[] YLUT_EQUATIONS = new String[] {
320 "~t (~x y + x ~y) + t ~x ~y",
321 "~t (~x + ~y) + ~x ~y",
328 "~t (x + y) + t ~x ~y",
352 "~x (t + y) + ~t x ~y",
384 "~y (t + x) + ~t ~x y",
402 "t (~x y + x ~y) + ~t x y",
403 "t (~x y + x ~y) + ~t x y",
404 "y (~t + ~x) + t x ~y",
405 "y (~t + ~x) + t x ~y",
406 "x (~t + ~y) + t ~x y",
407 "x (~t + ~y) + t ~x y",
418 "t (~x + ~y) + ~t x y",
419 "t (~x + ~y) + ~t x y",
424 "~(~t ~x ~y + t x y)",
432 "~t (~x + ~y) + t x y",
433 "~(t (~x + ~y) + ~t x y)",
444 "~x (~t + ~y) + t x y",
445 "~(x (~t + ~y) + t ~x y)",
446 "~y (~t + ~x) + t x y",
447 "~(y (~t + ~x) + t x ~y)",
448 "~(t (~x y + x ~y) + ~t x y)",
449 "~(t (~x y + x ~y) + ~t x y)",
456 "~(t (~x y + x ~y))",
457 "~(t (~x y + x ~y))",
467 "~(~y (t + x) + ~t ~x y)",
480 "~(x (~t y + t ~y))",
481 "~(x (~t y + t ~y))",
487 "~(t x ~y + ~t ~x y)",
499 "~(~x (t + y) + ~t x ~y)",
512 "~(y (~t x + t ~x))",
513 "~(y (~t x + t ~x))",
517 "~(~t x ~y + t ~x y)",
523 "~(~t (x + y) + t ~x ~y)",
529 "~(t ~x ~y + ~t x y)",
531 "~(~t (~x y + x ~y) + t ~x ~y)",
533 "~(~y (~t x + t ~x))",
535 "~(~x (~t y + t ~y))",
547 "~(~t (~x y + x ~y))",