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=58dc4d067bf160d2a5eb1d52673be31974c63636;hpb=88e1b4382640ee4e907e06572fe6794bc925f344;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 58dc4d06..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 @@ -11,13 +11,14 @@ public abstract class ModelMicroInstructionMemory extends ModelMemory 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(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(); } @@ -26,7 +27,7 @@ public abstract class ModelMicroInstructionMemory extends ModelMemory { return definition; } - + public Pin getAddressPin() { return addrPin; @@ -41,7 +42,7 @@ public abstract class ModelMicroInstructionMemory extends ModelMemory { return memory; } - + public void setCoreModelBinding(CoreMicroInstructionMemory memory) { this.memory = memory;