1 package edu.berkeley.obits.gui;
3 import com.atmel.fpslic.*;
4 import static com.atmel.fpslic.FpslicConstants.*;
5 import static com.atmel.fpslic.Fpslic.Util.*;
6 import edu.berkeley.obits.*;
7 import edu.berkeley.obits.device.atmel.*;
9 import java.awt.geom.*;
10 import java.awt.event.*;
11 import java.awt.color.*;
12 import org.ibex.util.*;
17 public class GuiConstants {
18 public static int SIZE = 92;
19 public static int RINGS = 3;
20 public static int BEVEL = 5;
21 public static int CORE_SIZE = 64;
22 public static int CORE_OFFSET = 10;
23 public static int HOFF = 52;
25 public static int RED = 0xff0000;
26 public static int BLUE = 0x0000ff;
27 //public static int LIGHTRED = 0xff0000;
28 //public static int LIGHTBLUE = 0x0000ff;
29 public static int LIGHTRED = 0xffbbbb;
30 public static int LIGHTBLUE = 0xbbbbff;
31 public static int GREEN = 0x006b33;
32 public static int WHITE = 0xffffff;
33 public static int BLACK = 0x000000;
34 public static int ORANGE = 0xff7f00;
35 public static int MAGENTA = 0xff00ff;
37 public static final P YLUT_OUTPUT_POINT = new P(SIZE-CORE_OFFSET-CORE_SIZE+51 - 2, CORE_OFFSET + 41 - 3);
38 public static final P XLUT_OUTPUT_POINT = new P(SIZE-CORE_OFFSET-CORE_SIZE+17 - 2, CORE_OFFSET + 41 - 3);
40 public static final String[] XLUT_EQUATIONS = new String[] {
63 "~t (~x y + x ~y) + t ~x ~y",
64 "~t (~x + ~y) + ~x ~y",
71 "~t (x + y) + t ~x ~y",
95 "~y (t + x) + ~t ~x y",
127 "~x (t + y) + ~t x ~y",
145 "t (~x y + x ~y) + ~t x y",
146 "t (~x y + x ~y) + ~t x y",
147 "x (~t + ~y) + t ~x y",
148 "x (~t + ~y) + t ~x y",
149 "y (~t + ~x) + t x ~y",
150 "y (~t + ~x) + t x ~y",
161 "t (~x + ~y) + ~t x y",
162 "t (~x + ~y) + ~t x y",
167 "~(~t ~x ~y + t x y)",
175 "~t (~x + ~y) + t x y",
176 "~(t (~x + ~y) + ~t x y)",
187 "~y (~t + ~x) + t x y",
188 "~(y (~t + ~x) + t x ~y)",
189 "~x (~t + ~y) + t x y",
190 "~(x (~t + ~y) + t ~x y)",
191 "~(t (~x y + x ~y) + ~t x y)",
192 "~(t (~x y + x ~y) + ~t x y)",
199 "~(t (~x y + x ~y))",
200 "~(t (~x y + x ~y))",
210 "~(~x (t + y) + ~t x ~y)",
223 "~(y (~t x + t ~x))",
224 "~(y (~t x + t ~x))",
230 "~(~t x ~y + t ~x y)",
242 "~(~y (t + x) + ~t ~x y)",
255 "~(x (~t y + t ~y))",
256 "~(x (~t y + t ~y))",
260 "~(t x ~y + ~t ~x y)",
266 "~(~t (x + y) + t ~x ~y)",
272 "~(t ~x ~y + ~t x y)",
274 "~(~t (~x y + x ~y) + t ~x ~y)",
276 "~(~x (~t y + t ~y))",
278 "~(~y (~t x + t ~x))",
290 "~(~t (~x y + x ~y))",
299 public static final String[] YLUT_EQUATIONS = new String[] {
322 "~t (~x y + x ~y) + t ~x ~y",
323 "~t (~x + ~y) + ~x ~y",
330 "~t (x + y) + t ~x ~y",
354 "~x (t + y) + ~t x ~y",
386 "~y (t + x) + ~t ~x y",
404 "t (~x y + x ~y) + ~t x y",
405 "t (~x y + x ~y) + ~t x y",
406 "y (~t + ~x) + t x ~y",
407 "y (~t + ~x) + t x ~y",
408 "x (~t + ~y) + t ~x y",
409 "x (~t + ~y) + t ~x y",
420 "t (~x + ~y) + ~t x y",
421 "t (~x + ~y) + ~t x y",
426 "~(~t ~x ~y + t x y)",
434 "~t (~x + ~y) + t x y",
435 "~(t (~x + ~y) + ~t x y)",
446 "~x (~t + ~y) + t x y",
447 "~(x (~t + ~y) + t ~x y)",
448 "~y (~t + ~x) + t x y",
449 "~(y (~t + ~x) + t x ~y)",
450 "~(t (~x y + x ~y) + ~t x y)",
451 "~(t (~x y + x ~y) + ~t x y)",
458 "~(t (~x y + x ~y))",
459 "~(t (~x y + x ~y))",
469 "~(~y (t + x) + ~t ~x y)",
482 "~(x (~t y + t ~y))",
483 "~(x (~t y + t ~y))",
489 "~(t x ~y + ~t ~x y)",
501 "~(~x (t + y) + ~t x ~y)",
514 "~(y (~t x + t ~x))",
515 "~(y (~t x + t ~x))",
519 "~(~t x ~y + t ~x y)",
525 "~(~t (x + y) + t ~x ~y)",
531 "~(t ~x ~y + ~t x y)",
533 "~(~t (~x y + x ~y) + t ~x ~y)",
535 "~(~y (~t x + t ~x))",
537 "~(~x (~t y + t ~y))",
549 "~(~t (~x y + x ~y))",