From d07d97764c8f41ff26f76e59d4d2f1789c2bcc9e Mon Sep 17 00:00:00 2001 From: Christian Femers Date: Mon, 2 Sep 2019 03:16:52 +0200 Subject: [PATCH] Fixed stack high level state BitVector length (changed 3 to 12) --- .../mograsim/logic/model/am2900/components/GUIram5_12.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.17.1