1 package net.mograsim.machine;
4 * This interface provides a means to get information about the machines memory
5 * architecture. It is not bound to any actual memory.
7 * @author Christian Femers
10 public interface MainMemoryDefinition extends MemoryDefinition
13 * The width in bits of an addressable memory cell/unit. This is often 8 (= one
14 * byte). The actual cells/lines of the memory may be a lot larger.
16 * @return the addressable unit width in bits
17 * @author Christian Femers
21 public static MainMemoryDefinition create(int memoryAddressBits, int cellWidth, long minimalAddress, long maximalAddress)
23 return new StandardMainMemoryDefinition(memoryAddressBits, cellWidth, minimalAddress, maximalAddress);