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).

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparseMemory
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  8. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  9. 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.

  10. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  12. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  13. val pageSize: Int
  14. def productElementNames: Iterator[String]
    Definition Classes
    Product
  15. 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.

  16. 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.

  17. 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.

  18. 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.

  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. 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.

  24. 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.

  25. 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

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped