WireArrayEnd now created with U and GUITest supports U
authorChristian Femers <femers@in.tum.de>
Sat, 18 May 2019 16:18:48 +0000 (18:18 +0200)
committerChristian Femers <femers@in.tum.de>
Sat, 18 May 2019 16:18:48 +0000 (18:18 +0200)
era.mi/src/era/mi/logic/tests/GUITest.java
era.mi/src/era/mi/logic/wires/WireArray.java

index 8630772..9db2df6 100644 (file)
@@ -240,6 +240,9 @@ public class GUITest extends JPanel
                case ZERO:
                        g.setColor(Color.BLACK);
                        break;
+               case U:
+                       g.setColor(Color.MAGENTA);
+                       break;
                default:
                        throw new IllegalArgumentException();
                }
@@ -279,7 +282,7 @@ public class GUITest extends JPanel
                                gt.repaint(12);
                        try
                        {
-                               Thread.sleep(Math.max(16 - System.currentTimeMillis() + lastFrame, 0));
+                               Thread.sleep(Math.max(updateT - System.currentTimeMillis() + lastFrame, 0));
                        }
                        catch (Exception e)
                        {
index 4b5fdc7..164e153 100644 (file)
@@ -257,7 +257,7 @@ public class WireArray
 
                private void initValues()
                {
-                       inputValues = Bit.Z.makeArray(length);
+                       inputValues = Bit.U.makeArray(length);
                }
 
                /**