1 package net.mograsim.logic.model.am2900.components;
3 import net.mograsim.logic.model.am2900.machine.Am2900Machine;
4 import net.mograsim.logic.model.am2900.machine.Am2900MachineDefinition;
5 import net.mograsim.logic.model.model.LogicModelModifiable;
6 import net.mograsim.logic.model.modeladapter.LogicCoreAdapter;
7 import net.mograsim.logic.model.serializing.IdentifyParams;
8 import net.mograsim.logic.model.serializing.IndirectModelComponentCreator;
9 import net.mograsim.machine.standard.memory.ModelWordAddressableMemory;
11 public class ModelAm2900MainMemory extends ModelWordAddressableMemory<Am2900Machine>
13 public ModelAm2900MainMemory(LogicModelModifiable model, String name)
15 super(model, Am2900MachineDefinition.getInstance().getMainMemoryDefinition(), name);
19 public String getIDForSerializing(IdentifyParams idParams)
21 return "Am2900MainMemory";
26 LogicCoreAdapter.addComponentAdapter(new ModelAm2900MainMemoryAdapter());
27 IndirectModelComponentCreator.setComponentSupplier(ModelAm2900MainMemory.class.getCanonicalName(), (m, p, n) ->
29 return new ModelAm2900MainMemory(m, n);