c06559852b57115ab4ca352b9e4a940f79f33d71
[Mograsim.git] /
1 package net.mograsim.logic.model.am2900.components;
2
3 import net.mograsim.logic.model.am2900.machine.Am2900MainMemoryDefinition;
4 import net.mograsim.logic.model.model.LogicModelModifiable;
5 import net.mograsim.logic.model.serializing.IdentifyParams;
6 import net.mograsim.logic.model.serializing.IndirectModelComponentCreator;
7 import net.mograsim.machine.standard.memory.ModelWordAddressableMemory;
8
9 public class ModelAm2900MainMemory extends ModelWordAddressableMemory
10 {
11         public ModelAm2900MainMemory(LogicModelModifiable model, String name)
12         {
13                 super(model, Am2900MainMemoryDefinition.instance, name);
14         }
15
16         @Override
17         public String getIDForSerializing(IdentifyParams idParams)
18         {
19                 return "Am2900MainMemory";
20         }
21
22         static
23         {
24                 IndirectModelComponentCreator.setComponentSupplier(ModelAm2900MainMemory.class.getCanonicalName(), (m, p, n) ->
25                 {
26                         return new ModelAm2900MainMemory(m, n);
27                 });
28         }
29 }