case class SparseMemory(pageSize: Int = 4096) extends Product with Serializable
Class simulating target memory.
Allocates pages dynamically on-demand (i.e., on reads and writes).
- pageSize
Size of the page to allocate (default; 4096 byte).
- Alphabetic
- By Inheritance
- SparseMemory
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SparseMemory(pageSize: Int = 4096)
Creates a sparce and dynamic simulated memory target.
Creates a sparce and dynamic simulated memory target.
- pageSize
Size of the page to allocate (default; 4096 byte).
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def loadBinary(address: BigInt, file: String): Unit
Populate memory with content of binary flie/blob.
Populate memory with content of binary flie/blob.
- address
Location where to start dumping file/blob.
- file
Name of the file containing the binry blob.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- val pageSize: Int
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def read(address: BigInt): Byte
Read byte of data at specified address.
Read byte of data at specified address.
- address
The address where to find data.
- returns
The data located at the specified address.
- def readArray(address: BigInt, len: Long): Array[Byte]
Read (sequential) an array of byte from page/memblock.
Read (sequential) an array of byte from page/memblock.
- address
The address where the data is loacted.
- len
The length of the array to read.
- returns
The array of bytes to be read.
- def readBigInt(address: BigInt, length: Int): BigInt
Reads a BigInt value from the given address.
Reads a BigInt value from the given address.
- address
Read address.
- returns
BigInt read from the given address.
- def saveBinary(address: BigInt, len: Long, file: String): Unit
Capture state of the memory and dump it in file.
Capture state of the memory and dump it in file.
- address
Address where to start the capture.
- len
Amount of bytes to capture.
- file
Target file in system to dump the binary blob in.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def write(address: BigInt, data: Byte): Unit
Write byte of data at specified address.
Write byte of data at specified address.
- address
The address where to write the data.
- data
The data (byte) to be written at the specified address.
- def writeArray(address: BigInt, data: Array[Byte]): Unit
Write (sequential) an array of byte to page/memblock.
Write (sequential) an array of byte to page/memblock.
- address
The address where the data is written to.
- data
Sequence of data (as bytes) to be written.
- def writeBigInt(address: BigInt, data: BigInt, width: Int, strb: BigInt = null): Unit
Writes a BigInt value to the given address.
Writes a BigInt value to the given address.
The BigInt will be resized to a byte Array of given width. The data will be trimmed if it is bigger than the given width. If it is smaller, the unused bytes will be filled with '0x00'.
- address
Write address.
- data
Data to be written.
- width
Width of the byte Array the data is resized to (if necessary).
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)