Chisel.AdvTester

AdvTester

Related Doc: package AdvTester

class AdvTester[+T <: Module] extends Tester[T]

Source
AdvTester.scala
Linear Supertypes
Tester[T], FileSystemUtilities, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AdvTester
  2. Tester
  3. FileSystemUtilities
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AdvTester(dut: T, isTrace: Boolean = false)

Type Members

  1. class DecoupledSink[T <: Data, R] extends Processable

  2. class DecoupledSource[T <: Data, R] extends Processable

  3. class ValidSink[T <: Data, R] extends Processable

  4. class ValidSource[T <: Data, R] extends Processable

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. def Boolean2Int(i: Boolean): Int

  5. val CC: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  6. val CCFLAGS: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  7. val CPPFLAGS: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  8. val CXX: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  9. val CXXFLAGS: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  10. object DecoupledSink

  11. object DecoupledSource

  12. val LDFLAGS: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  13. object SIM_CMD extends Enumeration

    Valid commands to send to the Simulator

    Valid commands to send to the Simulator

    Definition Classes
    Tester
    To do

    make private?

  14. object ValidSink

  15. object ValidSource

  16. val _inputs: ListSet[Bits]

    Definition Classes
    Tester
  17. val _logs: scala.collection.mutable.Queue[String]

    Definition Classes
    Tester
  18. val _outputs: ListSet[Bits]

    Definition Classes
    Tester
  19. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  20. def assert(expr: Boolean, errMsg: String = ""): Boolean

  21. def cc(dir: String, name: String, flags: String = "", isCC: Boolean = false): Unit

    Definition Classes
    FileSystemUtilities
  22. val chiselENV: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  23. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def copyToTarget(filename: String): Unit

    Definition Classes
    FileSystemUtilities
  25. def createOutputFile(name: String): FileWriter

    Definition Classes
    FileSystemUtilities
  26. var cycles: Int

  27. val defaultMaxCycles: Int

  28. var delta: Int

    Definition Classes
    Tester
  29. def do_registered_updates(): Unit

  30. def do_until(work: ⇒ Unit)(pred: ⇒ Boolean, maxCycles: Int = defaultMaxCycles): Boolean

  31. def dumpName(data: Node): String

    Definition Classes
    Tester
  32. val dut: T

  33. def ensureDir(dir: String): String

    Ensures a directory *dir* exists on the filesystem.

    Ensures a directory *dir* exists on the filesystem.

    Definition Classes
    FileSystemUtilities
  34. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  36. def eventually(pred: ⇒ Boolean, maxCycles: Int = defaultMaxCycles): Boolean

  37. def expect(data: Bits, expected: Float): Boolean

    A tolerant expect for Float Allows for a single least significant bit error in the floating point representation

    A tolerant expect for Float Allows for a single least significant bit error in the floating point representation

    Definition Classes
    Tester
  38. def expect(data: Dbl, expected: Double): Boolean

    Expect the value of 'data' to be 'expected'

    Expect the value of 'data' to be 'expected'

    returns

    the test passed

    Definition Classes
    Tester
  39. def expect(data: Flo, expected: Float): Boolean

    Expect the value of 'data' to be 'expected'

    Expect the value of 'data' to be 'expected'

    returns

    the test passed

    Definition Classes
    Tester
  40. def expect(data: Bits, expected: Long): Boolean

    Expect the value of 'data' to be 'expected'

    Expect the value of 'data' to be 'expected'

    returns

    the test passed

    Definition Classes
    Tester
  41. def expect(data: Bits, expected: Int): Boolean

    Expect the value of 'data' to be 'expected'

    Expect the value of 'data' to be 'expected'

    returns

    the test passed

    Definition Classes
    Tester
  42. def expect(data: Aggregate, expected: Array[BigInt]): Boolean

    Expect the value of Aggregate data to be have the values as passed in with the array

    Expect the value of Aggregate data to be have the values as passed in with the array

    Definition Classes
    Tester
  43. def expect(data: Bits, expected: BigInt): Boolean

    Expect the value of data to have the same bits as a BigInt

    Expect the value of data to have the same bits as a BigInt

    Definition Classes
    Tester
  44. def expect(good: Boolean, msg: String): Boolean

    Expect a value to be true printing a message if it passes or fails

    Expect a value to be true printing a message if it passes or fails

    good

    If the test passed or not

    msg

    The message to print out

    Definition Classes
    Tester
  45. var failureTime: Int

    Definition Classes
    Tester
  46. def finalize(): Unit

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

    Complete the simulation and inspect all tests

    Complete the simulation and inspect all tests

    Definition Classes
    Tester
  48. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  49. def getId(path: String): Int

    Attributes
    protected
    Definition Classes
    Tester
  50. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  51. def int(x: Bits): BigInt

    Convert Bits to BigInt

    Convert Bits to BigInt

    Definition Classes
    Tester
  52. def int(x: Long): BigInt

    Convert a Long to BigInt

    Convert a Long to BigInt

    Definition Classes
    Tester
  53. def int(x: Int): BigInt

    Convert an Int to BigInt

    Convert an Int to BigInt

    Definition Classes
    Tester
  54. def int(x: Boolean): BigInt

    Convert a Boolean to BigInt

    Convert a Boolean to BigInt

    Definition Classes
    Tester
  55. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  56. def link(dir: String, target: String, objects: Seq[String], isCC: Boolean = false, isLib: Boolean = false): Unit

    Definition Classes
    FileSystemUtilities
  57. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  58. final def notify(): Unit

    Definition Classes
    AnyRef
  59. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  60. var ok: Boolean

    Definition Classes
    Tester
  61. var pass: Boolean

  62. def peek(data: Dbl): Double

    Interpret the data as a double precision float

    Interpret the data as a double precision float

    Definition Classes
    Tester
  63. def peek(data: Flo): Float

    Interpret data as a single precision float

    Interpret data as a single precision float

    Definition Classes
    Tester
  64. def peek(data: Aggregate): Array[BigInt]

    Peek at Aggregate data

    Peek at Aggregate data

    returns

    an Array of BigInts representing the data

    Definition Classes
    Tester
  65. def peek(data: Bits): BigInt

    Peek at the value of some bits

    Peek at the value of some bits

    returns

    a BigInt representation of the bits

    Definition Classes
    Tester
  66. def peek(id: Int): BigInt

    id

    the unique id of a node

    returns

    the current value of the node with the id

    Definition Classes
    Tester
  67. def peekAt[T <: Bits](data: Mem[T], off: Int): BigInt

    Peek at the value of some memory at an index

    Peek at the value of some memory at an index

    data

    Memory to inspect

    off

    Offset in memory to look at

    Definition Classes
    Tester
  68. def peekNode(node: Node, off: Option[Int] = None): BigInt

    Peek at the value of a node

    Peek at the value of a node

    node

    Node to peek at

    off

    The index or offset to inspect

    Definition Classes
    Tester
  69. def peekPath(path: String): BigInt

    Peek at the value of a node based on the path

    Peek at the value of a node based on the path

    Definition Classes
    Tester
  70. def poke(port: Aggregate, target: Array[BigInt]): Unit

    Set the value of Aggregate data

    Set the value of Aggregate data

    Definition Classes
    AdvTesterTester
  71. def poke(port: Bits, target: BigInt): Unit

    Set the value of some 'data' Node

    Set the value of some 'data' Node

    Definition Classes
    AdvTesterTester
  72. def poke(data: Dbl, x: Double): Unit

    Set the value of a hardware double precision floating point representation

    Set the value of a hardware double precision floating point representation

    Definition Classes
    Tester
  73. def poke(data: Flo, x: Float): Unit

    Set the value of a hardware single precision floating point representation

    Set the value of a hardware single precision floating point representation

    Definition Classes
    Tester
  74. def poke(data: Bits, x: Long): Unit

    Set the value of some 'data' Node

    Set the value of some 'data' Node

    Definition Classes
    Tester
  75. def poke(data: Bits, x: Int): Unit

    Set the value of some 'data' Node

    Set the value of some 'data' Node

    Definition Classes
    Tester
  76. def poke(data: Bits, x: Boolean): Unit

    Set the value of some 'data' Node

    Set the value of some 'data' Node

    Definition Classes
    Tester
  77. def poke(id: Int, v: BigInt, w: Int = 1): Unit

    set the value of a node with unique 'id'

    set the value of a node with unique 'id'

    id

    The unique id of the node to set

    v

    The BigInt representing the bits to set

    w

    The number of 64 bit chunks to write, default is 1

    Definition Classes
    Tester
    Example:
    1. poke(id, BigInt(63) << 60, 2)
  78. def pokeAt[T <: Bits](data: Mem[T], value: BigInt, off: Int): Unit

    set the value of some memory

    set the value of some memory

    data

    The memory to write to

    value

    The BigInt representing the bits to set

    off

    The offset representing the index to write to memory

    Definition Classes
    Tester
  79. def pokeNode(node: Node, v: BigInt, off: Option[Int] = None): Unit

    set the value of a node

    set the value of a node

    node

    The node to set

    v

    The BigInt representing the bits to set

    off

    The offset or index

    Definition Classes
    Tester
  80. def pokePath(path: String, v: BigInt, w: Int = 1): Unit

    set the value of a node with its path

    set the value of a node with its path

    path

    The unique path of the node to set

    v

    The BigInt representing the bits to set

    w

    The number of 64 bit chunks to write, default is 1

    Definition Classes
    Tester
    Example:
    1. poke(path, BigInt(63) << 60, 2)
  81. val postprocessors: ArrayBuffer[Processable]

  82. val preprocessors: ArrayBuffer[Processable]

  83. val process: Process

    Definition Classes
    Tester
  84. def reg_poke(port: Aggregate, target: Array[BigInt]): Unit

  85. def reg_poke(port: Bits, target: BigInt): Unit

  86. val registered_aggr_updates: HashMap[Aggregate, Array[BigInt]]

  87. val registered_bits_updates: HashMap[Bits, BigInt]

  88. def reset(n: Int = 1): Unit

    Send reset to the hardware

    Send reset to the hardware

    n

    number of cycles to hold reset for, default 1

    Definition Classes
    Tester
  89. val rnd: Random

    Definition Classes
    Tester
  90. def run(cmd: String): Boolean

    Definition Classes
    FileSystemUtilities
  91. def setClock(clk: Clock, len: Int): Unit

    Definition Classes
    Tester
  92. def setClocks(clocks: Iterable[(Clock, Int)]): Unit

    Definition Classes
    Tester
  93. def signed_fix(dtype: Bits, rv: BigInt): BigInt

    Definition Classes
    Tester
  94. def step(n: Int): Unit

    Step time by the smallest amount to the next rising clock edge

    Step time by the smallest amount to the next rising clock edge

    Definition Classes
    Tester
    Note

    this is defined based on the period of the clock See Clock

  95. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  96. var t: Int

    Definition Classes
    Tester
  97. def takeStep: Unit

    Attributes
    protected
    Definition Classes
    Tester
  98. def takestep(work: ⇒ Unit = {}): Unit

  99. def takesteps(n: Int)(work: ⇒ Unit = {}): Unit

  100. def testOutputString: String

    Definition Classes
    Tester
  101. def toString(): String

    Definition Classes
    AnyRef → Any
  102. def until(pred: ⇒ Boolean, maxCycles: Int = defaultMaxCycles)(work: ⇒ Unit): Boolean

  103. def update: Unit

    Attributes
    protected
    Definition Classes
    Tester
  104. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  105. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  106. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  107. def waitForStreams(): Unit

    Waits until the emulator streams are ready.

    Waits until the emulator streams are ready. This is a dirty hack related to the way Process works. TODO: FIXME.

    Definition Classes
    Tester
  108. def wire_poke(port: Aggregate, target: Array[BigInt]): Unit

  109. def wire_poke(port: Bits, target: BigInt): Unit

  110. def wire_poke(port: Bits, target: Long): Unit

  111. def wire_poke(port: Bits, target: Int): Unit

  112. def wire_poke(port: Bits, target: Boolean): Unit

Inherited from Tester[T]

Inherited from FileSystemUtilities

Inherited from AnyRef

Inherited from Any

Ungrouped