X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.machine%2Fsrc%2Fnet%2Fmograsim%2Fmachine%2FMachineDefinition.java;fp=net.mograsim.machine%2Fsrc%2Fnet%2Fmograsim%2Fmachine%2FMachineDefinition.java;h=0000000000000000000000000000000000000000;hb=7d05144c25daa53e60fc9ed9fd503546a86567f8;hp=02cf375709d0ed9f68b8b29d8c890803b42b4f7e;hpb=8bed58cd47f4e53a0a83e066d38864aa6875502f;p=Mograsim.git diff --git a/net.mograsim.machine/src/net/mograsim/machine/MachineDefinition.java b/net.mograsim.machine/src/net/mograsim/machine/MachineDefinition.java deleted file mode 100644 index 02cf3757..00000000 --- a/net.mograsim.machine/src/net/mograsim/machine/MachineDefinition.java +++ /dev/null @@ -1,59 +0,0 @@ -package net.mograsim.machine; - -import java.util.Set; - -import net.mograsim.machine.mi.MicroInstructionMemoryDefinition; - -public interface MachineDefinition -{ - - /** - * Creates a new instance of the machine - * - * @return a new object of an {@link Machine} implementation. - * @author Christian Femers - */ - Machine createNew(); - - /** - * Returns the schema that all possible ISAs (Instruction Set Architecture) must be based on. - * - * @return an {@link ISASchema} implementation fitting the machine - * @author Christian Femers - */ - ISASchema getISASchema(); - - /** - * Returns a set of all {@link Register}s present in the machine. - * - * @return all registers present in the machine. - * @author Christian Femers - */ - Set getRegisters(); - - /** - * The number of bits used by the machine to address main memory. Note that this should be the number of bits used in the CPU, not a - * possibly different one used by the bus system. - * - * @return the number of bits used by the CPU - * @see MainMemoryDefinition#getMemoryAddressBits() - * @author Christian Femers - */ - int getAddressBits(); - - /** - * Returns the definition of the machines main memory. - * - * @return the {@link MainMemoryDefinition} that defines the main memory. - * @author Christian Femers - */ - MainMemoryDefinition getMainMemoryDefinition(); - - /** - * Returns the definition of the machines instruction memory. - * - * @return the {@link InstructionMemoryDefinition} that defines the instruction memory. - */ - MicroInstructionMemoryDefinition getMicroInstructionMemoryDefinition(); - -}