X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.machine%2Fsrc%2Fnet%2Fmograsim%2Fmachine%2Fmi%2Fcomponents%2FModelMicroInstructionMemory.java;h=c9af9a9ff570ade758f0b8ff68105450238b1017;hb=18751c233058925190cf9c1e6bbd1e764f68bf43;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..c9af9a9f 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,13 @@ 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 +26,7 @@ public abstract class ModelMicroInstructionMemory extends ModelMemory { return definition; } - + public Pin getAddressPin() { return addrPin; @@ -41,7 +41,7 @@ public abstract class ModelMicroInstructionMemory extends ModelMemory { return memory; } - + public void setCoreModelBinding(CoreMicroInstructionMemory memory) { this.memory = memory;