Package ru.ispras.microtesk.model.memory
Class Memory
- java.lang.Object
-
- ru.ispras.microtesk.model.memory.Memory
-
public abstract class Memory extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Memory.Kind
-
Constructor Summary
Constructors Modifier Constructor Description protected
Memory(Memory other)
protected
Memory(Memory.Kind kind, java.lang.String name, Type type, java.math.BigInteger length, boolean isAlias)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Location
access()
abstract Location
access(int address)
abstract Location
access(long address)
abstract Location
access(java.math.BigInteger address)
abstract Location
access(Data address)
abstract Memory
copy()
static Memory
def(Memory.Kind kind, java.lang.String name, Type type, long length)
static Memory
def(Memory.Kind kind, java.lang.String name, Type type, long length, Location alias)
static Memory
def(Memory.Kind kind, java.lang.String name, Type type, long length, Memory memory, int min, int max)
static Memory
def(Memory.Kind kind, java.lang.String name, Type type, java.math.BigInteger length)
static Memory
def(Memory.Kind kind, java.lang.String name, Type type, java.math.BigInteger length, Location alias)
static Memory
def(Memory.Kind kind, java.lang.String name, Type type, java.math.BigInteger length, Memory memory, int min, int max)
int
getAddressBitSize()
MemoryAllocator
getAllocator()
protected static int
getIndexBitSize(int count)
Memory.Kind
getKind()
java.math.BigInteger
getLength()
java.lang.String
getName()
Type
getType()
void
initAllocator(int addressableUnitBitSize, java.math.BigInteger baseAddress)
boolean
isAlias()
abstract void
reset()
MemoryDevice
setHandler(MemoryDevice handler)
java.lang.String
toString()
-
-
-
Constructor Detail
-
Memory
protected Memory(Memory.Kind kind, java.lang.String name, Type type, java.math.BigInteger length, boolean isAlias)
-
Memory
protected Memory(Memory other)
-
-
Method Detail
-
def
public static Memory def(Memory.Kind kind, java.lang.String name, Type type, long length)
-
def
public static Memory def(Memory.Kind kind, java.lang.String name, Type type, java.math.BigInteger length)
-
def
public static Memory def(Memory.Kind kind, java.lang.String name, Type type, long length, Location alias)
-
def
public static Memory def(Memory.Kind kind, java.lang.String name, Type type, java.math.BigInteger length, Location alias)
-
def
public static Memory def(Memory.Kind kind, java.lang.String name, Type type, long length, Memory memory, int min, int max)
-
def
public static Memory def(Memory.Kind kind, java.lang.String name, Type type, java.math.BigInteger length, Memory memory, int min, int max)
-
getIndexBitSize
protected static int getIndexBitSize(int count)
-
initAllocator
public void initAllocator(int addressableUnitBitSize, java.math.BigInteger baseAddress)
-
getAllocator
public MemoryAllocator getAllocator()
-
setHandler
public MemoryDevice setHandler(MemoryDevice handler)
-
getKind
public final Memory.Kind getKind()
-
getName
public final java.lang.String getName()
-
getType
public final Type getType()
-
getLength
public final java.math.BigInteger getLength()
-
isAlias
public final boolean isAlias()
-
getAddressBitSize
public final int getAddressBitSize()
-
access
public final Location access()
-
access
public abstract Location access(int address)
-
access
public abstract Location access(long address)
-
access
public abstract Location access(java.math.BigInteger address)
-
copy
public abstract Memory copy()
-
reset
public abstract void reset()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-