X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.am2900%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fam2900%2Fcomponents%2FGUIram5_12.java;fp=net.mograsim.logic.model.am2900%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fam2900%2Fcomponents%2FGUIram5_12.java;h=d1871f452f4132a8ea6e2a50c1655365f3c2a01c;hb=d07d97764c8f41ff26f76e59d4d2f1789c2bcc9e;hp=a8c397c3efcf530f2921dd9f5586da896f7d418c;hpb=178c7c941b932bb2119eb924f096e49f816a3691;p=Mograsim.git diff --git a/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/GUIram5_12.java b/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/GUIram5_12.java index a8c397c3..d1871f45 100644 --- a/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/GUIram5_12.java +++ b/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/components/GUIram5_12.java @@ -104,8 +104,8 @@ public class GUIram5_12 extends SimpleRectangularHardcodedGUIComponent { int addr = Integer.parseInt(m.group(1), 2); BitVector newHighLevelStateCasted = (BitVector) newHighLevelState; - if (newHighLevelStateCasted.length() != 3) - throw new IllegalArgumentException("Expected BitVector of length 3, not " + newHighLevelStateCasted.length()); + if (newHighLevelStateCasted.length() != 12) + throw new IllegalArgumentException("Expected BitVector of length 12, not " + newHighLevelStateCasted.length()); return ((BitVector[]) lastState)[addr] = newHighLevelStateCasted; } return super.setHighLevelState(lastState, stateID, newHighLevelState);