Changed Modelram5_12's HLS-IDs to have a trailing .q
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Mon, 7 Oct 2019 00:04:52 +0000 (02:04 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Mon, 7 Oct 2019 00:04:57 +0000 (02:04 +0200)
plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/Modelram5_12.java
tests/net.mograsim.logic.model.am2900.tests/src/net/mograsim/logic/model/am2900/am2910/TestableAm2910Impl.java

index 53c9960..16c2077 100644 (file)
@@ -86,7 +86,7 @@ public class Modelram5_12 extends SimpleRectangularHardcodedModelComponent
                return (bits[0] == ONE ? 4 : 0) + (bits[1] == ONE ? 2 : 0) + (bits[2] == ONE ? 1 : 0);
        }
 
-       Pattern stateIDPattern = Pattern.compile("c(0[10][10]|100)");
+       Pattern stateIDPattern = Pattern.compile("c(0[10][10]|100).q");
 
        @Override
        protected Object getHighLevelState(Object state, String stateID)
index 48b8569..ef763df 100644 (file)
@@ -139,7 +139,7 @@ public class TestableAm2910Impl implements TestableAm2910
                case S_2:
                case S_3:
                case S_4:
-                       return "stack.c" + BitVector.from(r.ordinal(), 3);
+                       return "stack.c" + BitVector.from(r.ordinal(), 3) + ".q";
                case SP:
                        return "sp.q";
                case PC: