import net.mograsim.machine.MachineDefinition;
import net.mograsim.machine.MainMemory;
import net.mograsim.machine.Register;
-import net.mograsim.machine.mi.MicroInstructionMemory;
+import net.mograsim.machine.mi.AssignableMicroInstructionMemory;
+ import net.mograsim.machine.mi.MicroInstruction;
+ import net.mograsim.machine.mi.MicroInstructionDefinition;
import net.mograsim.machine.mi.StandardMicroInstructionMemory;
+ import net.mograsim.machine.mi.parameters.MicroInstructionParameter;
+ import net.mograsim.machine.mi.parameters.ParameterClassification;
import net.mograsim.machine.standard.memory.WordAddressableMemory;
public class Am2900Machine implements Machine
{
private Am2900MachineDefinition machineDefinition;
private LogicModelModifiable logicModel;
+ private ModelComponent am2900;
private Timeline timeline;
private MainMemory mainMemory;
- private MicroInstructionMemory instMemory;
+ private AssignableMicroInstructionMemory instMemory;
private CoreClock clock;
- public Am2900Machine(Am2900MachineDefinition am2900MachineDefinition)
+ public Am2900Machine(LogicModelModifiable model, Am2900MachineDefinition am2900MachineDefinition)
{
this.machineDefinition = am2900MachineDefinition;
- logicModel = new LogicModelModifiable();
- IndirectModelComponentCreator.createComponent(logicModel,
+ this.logicModel = model;
+ this.am2900 = IndirectModelComponentCreator.createComponent(logicModel,
"resloader:Am2900Loader:jsonres:net/mograsim/logic/model/am2900/components/Am2900.json", "Am2900");
CoreModelParameters params = new CoreModelParameters();
params.gateProcessTime = 50;