| Modifier and Type | Field and Description |
|---|---|
int |
addressingUnit
Unit of addressing (in bytes)
|
long |
capacity
Capacity in bytes
|
int |
physicalAddressSize
Physical address size (in bits)
|
| Constructor and Description |
|---|
RAM(long capacity,
int physicalAddressSize)
Constructor for byte-addressable memory
|
RAM(long capacity,
int physicalAddressSize,
int addressingUnit)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Textual description of the hardware
|
void |
tick()
Method invoked by
Clock in each time instance |
public final long capacity
public final int physicalAddressSize
public final int addressingUnit
public RAM(long capacity,
int physicalAddressSize)
capacity - Capacity in bytesphysicalAddressSize - Physical address size (in bits)public RAM(long capacity,
int physicalAddressSize,
int addressingUnit)
capacity - Capacity in bytesphysicalAddressSize - Physical address size (in bits)addressingUnit - Unit of addressing (in bytes)public void tick()
ClockableClock in each time instancepublic java.lang.String getDescription()
ClockablegetDescription in interface Clockable