Implemented some infrastructure for MPROMs
[Mograsim.git] / plugins / net.mograsim.machine / src / net / mograsim / machine / mi / MPROMDefinition.java
1 package net.mograsim.machine.mi;
2
3 import net.mograsim.machine.MemoryDefinition;
4
5 /**
6  * This interface provides a means to get information about the machines memory architecture. It is not bound to any actual memory.
7  *
8  * @author Christian Femers
9  *
10  */
11 public interface MPROMDefinition extends MemoryDefinition
12 {
13         /**
14          * The width in bits of an addressable memory cell/unit. This is often 8 (= one byte). The actual cells/lines of the memory may be a lot
15          * larger.
16          * 
17          * @return the addressable unit width in bits
18          * @author Christian Femers
19          */
20         int getMicroInstructionMemoryAddressBits();
21
22         public static MPROMDefinition create(int opcodeBits, int microInstructionMemoryAddressBits)
23         {
24                 return new StandardMPROMDefinition(opcodeBits, microInstructionMemoryAddressBits);
25         }
26 }