X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.machine%2Fsrc%2Fnet%2Fmograsim%2Fmachine%2Fmi%2Fcomponents%2FModelMicroInstructionMemory.java;h=94a4d0e03c346b43c262e8c2f48a21c89047e939;hb=4ba119cab03498736851e6f3f32eec1957839a2e;hp=34e7e806c66344f432d401d89a3477391f8453f2;hpb=91f076c44a4f00786343beb923ab01894672416f;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 34e7e806..94a4d0e0 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 @@ -8,17 +8,17 @@ import net.mograsim.machine.mi.MicroInstructionMemoryDefinition; public abstract class ModelMicroInstructionMemory extends ModelMemory { - private final Pin addrPin, dataPin, clock; + private final Pin addrPin, dataPin; private CoreMicroInstructionMemory memory; private final MicroInstructionMemoryDefinition definition; - + public ModelMicroInstructionMemory(LogicModelModifiable model, MicroInstructionMemoryDefinition definition, String name) { - super(model, 200, 100, name, "MPM", false); + super(model, 120, 150, name, "MPM", false); this.definition = definition; - addPin(addrPin = new Pin(model, this, "A", definition.getMemoryAddressBits(), PinUsage.INPUT, width / 2, 0)); - addPin(dataPin = new Pin(model, this, "D", definition.getMicroInstructionDefinition().sizeInBits(), PinUsage.OUTPUT, 0, 30)); - addPin(clock = new Pin(model, this, "C", 1, PinUsage.INPUT, 0, 60)); + 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)); init(); } @@ -27,7 +27,7 @@ public abstract class ModelMicroInstructionMemory extends ModelMemory { return definition; } - + public Pin getAddressPin() { return addrPin; @@ -38,16 +38,11 @@ public abstract class ModelMicroInstructionMemory extends ModelMemory return dataPin; } - public Pin getClockPin() - { - return clock; - } - public CoreMicroInstructionMemory getCoreMemory() { return memory; } - + public void setCoreModelBinding(CoreMicroInstructionMemory memory) { this.memory = memory;