From 7e9af60381c4c5abe8b9c3dad8ed3b5e0991f0a6 Mon Sep 17 00:00:00 2001 From: Daniel Kirschten Date: Thu, 26 Sep 2019 13:30:21 +0200 Subject: [PATCH] Fixed Am2900Machine#reset (broke when deleting clock ManualSwitch) --- .../net/mograsim/logic/model/am2900/machine/Am2900Machine.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/machine/Am2900Machine.java b/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/machine/Am2900Machine.java index fc0ec2bd..f0bbb229 100644 --- a/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/machine/Am2900Machine.java +++ b/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/am2900/machine/Am2900Machine.java @@ -2,7 +2,6 @@ package net.mograsim.logic.model.am2900.machine; import net.mograsim.logic.core.components.CoreClock; import net.mograsim.logic.core.timeline.Timeline; -import net.mograsim.logic.core.types.Bit; import net.mograsim.logic.core.types.BitVector; import net.mograsim.logic.model.model.LogicModel; import net.mograsim.logic.model.model.LogicModelModifiable; @@ -60,7 +59,6 @@ public class Am2900Machine implements Machine @Override public void reset() { - logicModel.getComponentByName("Am2900").setHighLevelState("c.out", BitVector.of(Bit.ZERO)); MicroInstructionDefinition muiDef = getDefinition().getMicroInstructionMemoryDefinition().getMicroInstructionDefinition(); ParameterClassification[] paramClassifications = muiDef.getParameterClassifications(); MicroInstructionParameter[] defaultParams = muiDef.createDefaultInstruction().getParameters(); -- 2.17.1