c

spinal.lib.sim

SparseMemory

case class SparseMemory(seed: Long = simRandom.nextLong(), randOffset: Long = 0l) extends Product with Serializable

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

Instance Constructors

  1. new SparseMemory(seed: Long = simRandom.nextLong(), randOffset: Long = 0l)

Value Members

  1. val content: HashMap[Long, Array[Byte]]
  2. def getElseAlocate(idx: Long): Array[Byte]
  3. def loadBin(offset: Long, file: File): Unit
  4. def loadBin(offset: Long, file: String): Unit
  5. var randOffset: Long
  6. def read(address: Long): Byte
  7. def readByteAsInt(address: Long): Int
  8. def readBytes(address: Long, size: Int, dst: Array[Byte], dstOffset: Int = 0): Unit
  9. def readBytes(address: Long, size: Int): Array[Byte]
  10. def readInt(address: Long): Int
  11. val seed: Long
  12. def write(address: Long, data: Array[Byte], mask: Array[Boolean], size: Int, dataSkip: Int): Unit
  13. def write(address: Long, data: Array[Byte], mask: Array[Boolean]): Unit
  14. def write(address: Long, data: Array[Byte], mask: Array[Byte]): Unit
  15. def write(address: Long, data: Array[Byte]): Unit
  16. def write(address: Long, data: Byte): Unit
  17. def write(address: Long, data: Long): Unit
  18. def write(address: Long, data: Int): Unit
  19. def writeInt(address: Long, data: Int): Unit