X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.machine%2Fsrc%2Fnet%2Fmograsim%2Fmachine%2Fmi%2Fcomponents%2FModelMicroInstructionMemory.java;h=b3c41749fec941a414e64a3a0e9ff0ff599ff502;hb=8bed58cd47f4e53a0a83e066d38864aa6875502f;hp=c9af9a9ff570ade758f0b8ff68105450238b1017;hpb=18751c233058925190cf9c1e6bbd1e764f68bf43;p=Mograsim.git diff --git a/net.mograsim.machine/src/net/mograsim/machine/mi/components/ModelMicroInstructionMemory.java b/net.mograsim.machine/src/net/mograsim/machine/mi/components/ModelMicroInstructionMemory.java index c9af9a9f..b3c41749 100644 --- a/net.mograsim.machine/src/net/mograsim/machine/mi/components/ModelMicroInstructionMemory.java +++ b/net.mograsim.machine/src/net/mograsim/machine/mi/components/ModelMicroInstructionMemory.java @@ -3,10 +3,11 @@ package net.mograsim.machine.mi.components; import net.mograsim.logic.model.model.LogicModelModifiable; import net.mograsim.logic.model.model.wires.Pin; import net.mograsim.logic.model.model.wires.PinUsage; +import net.mograsim.machine.Machine; import net.mograsim.machine.ModelMemory; import net.mograsim.machine.mi.MicroInstructionMemoryDefinition; -public abstract class ModelMicroInstructionMemory extends ModelMemory +public abstract class ModelMicroInstructionMemory extends ModelMemory { private final Pin addrPin, dataPin; private CoreMicroInstructionMemory memory; @@ -17,7 +18,8 @@ public abstract class ModelMicroInstructionMemory extends ModelMemory super(model, 120, 150, name, "MPM", false); this.definition = definition; addPin(addrPin = new Pin(model, this, "A", definition.getMemoryAddressBits(), PinUsage.INPUT, getWidth(), 30)); - addPin(dataPin = new Pin(model, this, "D", definition.getMicroInstructionDefinition().sizeInBits(), PinUsage.OUTPUT, getWidth(), 50)); + addPin(dataPin = new Pin(model, this, "D", definition.getMicroInstructionDefinition().sizeInBits(), PinUsage.OUTPUT, getWidth(), + 50)); init(); }