X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.machine%2Fsrc%2Fnet%2Fmograsim%2Fmachine%2Fmi%2Fcomponents%2FCoreMicroInstructionMemory.java;h=96ac46c75b49c91c016e9dca366cf5f16dbaedda;hb=c356c613955c3ea57d2379fb76f9bd07f1e30170;hp=aacc243e7a026e1b335346c73c0923ea5bed3288;hpb=26cacc7d4e6dd00d52546754ecc478b129f84339;p=Mograsim.git diff --git a/plugins/net.mograsim.machine/src/net/mograsim/machine/mi/components/CoreMicroInstructionMemory.java b/plugins/net.mograsim.machine/src/net/mograsim/machine/mi/components/CoreMicroInstructionMemory.java index aacc243e..96ac46c7 100644 --- a/plugins/net.mograsim.machine/src/net/mograsim/machine/mi/components/CoreMicroInstructionMemory.java +++ b/plugins/net.mograsim.machine/src/net/mograsim/machine/mi/components/CoreMicroInstructionMemory.java @@ -9,7 +9,7 @@ import net.mograsim.logic.core.types.Bit; import net.mograsim.logic.core.types.BitVector; import net.mograsim.logic.core.wires.CoreWire.ReadEnd; import net.mograsim.logic.core.wires.CoreWire.ReadWriteEnd; -import net.mograsim.machine.MemoryObserver; +import net.mograsim.machine.Memory.MemoryCellModifiedListener; import net.mograsim.machine.mi.MicroInstructionMemory; import net.mograsim.machine.mi.MicroInstructionMemoryDefinition; @@ -18,7 +18,7 @@ public class CoreMicroInstructionMemory extends BasicCoreComponent private final ReadWriteEnd data; private final ReadEnd address; private final MicroInstructionMemoryDefinition definition; - private final MemoryObserver memObs; + private final MemoryCellModifiedListener memObs; private MicroInstructionMemory memory; public CoreMicroInstructionMemory(Timeline timeline, int processTime, MicroInstructionMemoryDefinition definition, ReadWriteEnd data, @@ -46,10 +46,10 @@ public class CoreMicroInstructionMemory extends BasicCoreComponent if (memory != null && !memory.getDefinition().equals(definition)) throw new IllegalArgumentException("Memory of incorrect memory definition given"); if (this.memory != null) - this.memory.registerObserver(memObs); + this.memory.registerCellModifiedListener(memObs); this.memory = memory; if (memory != null) - memory.registerObserver(memObs); + memory.registerCellModifiedListener(memObs); update(); }