Chisel

Tester

class Tester[+T <: Module] extends FileSystemUtilities

This class is the super class for test cases

Source
Tester.scala
Example:
  1. class myTest(c : TestModule) extends Tester(c) { ... }
Linear Supertypes
FileSystemUtilities, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Tester
  2. FileSystemUtilities
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Tester(c: T, isTrace: Boolean = true, _base: Int = 16, testCmd: Option[String] = Driver.testCommand, dumpFile: Option[String] = scala.None)

    c

    The module under test

    isTrace

    print the all I/O operations and tests to stdout, default true

    _base

    base for prints, default 16 (hex)

    testCmd

    command to run the emulator

    dumpFile

    vcd/vpd file name

Type Members

  1. class BasicObserver extends Observer

  2. case class DumpEvent(msg: String) extends Event with Product with Serializable

  3. abstract class Event extends AnyRef

  4. case class ExpectDblEvent(b: Dbl, got: Double, expected: Double, msg: String) extends Event with Product with Serializable

  5. case class ExpectEvent(b: Bits, got: BigInt, expected: BigInt, msg: String) extends Event with Product with Serializable

  6. case class ExpectFloEvent(b: Bits, got: Float, expected: Float, msg: String) extends Event with Product with Serializable

  7. case class ExpectMsgEvent(good: Boolean, msg: String) extends Event with Product with Serializable

  8. case class FinishEvent(t: Long, pass: Boolean, fail_t: Long) extends Event with Product with Serializable

  9. case class MuteEvent() extends Event with Product with Serializable

  10. case class NoIdEvent(path: String) extends Event with Product with Serializable

  11. class Observer extends AnyRef

  12. case class PeekDblEvent(b: Dbl, v: Double) extends Event with Product with Serializable

  13. case class PeekEvent(b: Bits, v: Option[BigInt]) extends Event with Product with Serializable

  14. case class PeekFloEvent(b: Flo, v: Float) extends Event with Product with Serializable

  15. case class PeekMemEvent[T <: Data](m: Mem[T], off: Int, v: BigInt) extends Event with Product with Serializable

  16. case class PokeDblEvent(b: Dbl, v: Double) extends Event with Product with Serializable

  17. case class PokeEvent(b: Bits, v: BigInt, good: Boolean = true) extends Event with Product with Serializable

  18. case class PokeFloEvent(b: Flo, v: Float) extends Event with Product with Serializable

  19. case class PokeMemEvent[T <: Data](m: Mem[T], off: Int, v: BigInt) extends Event with Product with Serializable

  20. case class ResetEvent(n: Int) extends Event with Product with Serializable

  21. case class StartEvent(seed: Long, cmd: String) extends Event with Product with Serializable

  22. case class StepEvent(n: Int, t: Long) extends Event with Product with Serializable

  23. case class UnmuteEvent() extends Event with Product with Serializable

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val CC: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  7. val CCFLAGS: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  8. val CPPFLAGS: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  9. val CXX: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  10. val CXXFLAGS: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  11. val LDFLAGS: String

    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  12. val _inputs: ListSet[Bits]

  13. val _outputs: ListSet[Bits]

  14. var _t: Long

  15. def addEvent(e: Event): Unit

  16. def addObserver(o: Observer): Unit

  17. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  18. def cc(dir: String, name: String, flags: String = "", isCC: Boolean = false): Unit

    Definition Classes
    FileSystemUtilities
  19. val chiselENV: String

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def close: Unit

  22. val cmd: String

  23. implicit def cmdToId(cmd: SIM_CMD.Value): Int

  24. def copyToTarget(filename: String): Unit

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

    Definition Classes
    FileSystemUtilities
  26. var delta: Int

  27. def dumpName(data: Node): String

  28. def ensureDir(dir: String): String

    Ensures a directory *dir* exists on the filesystem.

    Ensures a directory *dir* exists on the filesystem.

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

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

    Definition Classes
    AnyRef → Any
  31. def expect(data: Bits, expected: Float): Boolean

  32. def expect(data: Bits, expected: Float, msg: ⇒ String): Boolean

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

  33. def expect(data: Dbl, expected: Double): Boolean

  34. def expect(data: Dbl, expected: Double, msg: ⇒ String): Boolean

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

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

    returns

    the test passed

  35. def expect(data: Flo, expected: Float): Boolean

  36. def expect(data: Flo, expected: Float, msg: ⇒ String): Boolean

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

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

    returns

    the test passed

  37. def expect(data: Bool, expected: Boolean): Boolean

  38. def expect(data: Bool, expected: Boolean, msg: ⇒ String): Boolean

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

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

    returns

    the test passed

  39. def expect(data: Bits, expected: Long): Boolean

  40. def expect(data: Bits, expected: Long, msg: ⇒ String): Boolean

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

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

    returns

    the test passed

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

  42. def expect(data: Bits, expected: Int, msg: ⇒ String): Boolean

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

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

    returns

    the test passed

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

  44. def expect(data: Bits, expected: BigInt): Boolean

  45. def expect(data: Bits, expected: BigInt, msg: ⇒ String): Boolean

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

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

  47. def fail: Unit

  48. def finalize(): Unit

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

    Complete the simulation and inspect all tests

  50. def getChunk(id: Int): Int

    Attributes
    protected
  51. final def getClass(): Class[_]

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

    Attributes
    protected
  53. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  54. def incTime(n: Int): Unit

  55. def int(x: Bits): BigInt

    Convert Bits to BigInt

  56. def int(x: Long): BigInt

    Convert a Long to BigInt

  57. def int(x: Int): BigInt

    Convert an Int to BigInt

  58. def int(x: Boolean): BigInt

    Convert a Boolean to BigInt

  59. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    FileSystemUtilities
  61. implicit def longToInt(x: Long): Int

  62. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  63. def newTestOutputString: String

  64. final def notify(): Unit

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

    Definition Classes
    AnyRef
  66. def peek(data: Dbl): Double

    Interpret the data as a double precision float

  67. def peek(data: Flo): Float

    Interpret data as a single precision float

  68. def peek(data: Aggregate): Array[BigInt]

    Peek at Aggregate data

    Peek at Aggregate data

    returns

    an Array of BigInts representing the data

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

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

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

  72. def peekPath(path: String): BigInt

    Peek at the value of a node based on the path

  73. def poke(data: Dbl, x: Double): Unit

    Set the value of a hardware double precision floating point representation

  74. def poke(data: Flo, x: Float): Unit

    Set the value of a hardware single precision floating point representation

  75. def poke(data: Aggregate, x: Array[BigInt]): Unit

    Set the value of Aggregate data

  76. def poke(data: Bits, x: BigInt): Unit

    Set the value of some 'data' Node

  77. def poke(data: Bits, x: Long): Unit

    Set the value of some 'data' Node

  78. def poke(data: Bits, x: Int): Unit

    Set the value of some 'data' Node

  79. def poke(data: Bits, x: Boolean): Unit

    Set the value of some 'data' Node

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

  81. def pokeNode(node: Node, v: BigInt, off: Option[Int] = None, force: Boolean = false): 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

  82. def pokePath(path: String, v: BigInt, force: Boolean = false): 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

    Example:
    1. poke(path, BigInt(63) << 60, 2)
  83. def printfs: Vector[String]

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

  85. val rnd: Random

  86. def run(cmd: String): Boolean

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

  88. def setClocks(clocks: Iterable[(Clock, Int)]): Unit

  89. def signed_fix(dtype: Bits, rv: BigInt): BigInt

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

    Note

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

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

    Definition Classes
    AnyRef
  92. def t: Long

  93. def takeStep: Unit

    Attributes
    protected
  94. val target: String

  95. val targetSubDir: String

  96. def throwExceptionIfDead(exitValue: Future[Int]): Unit

  97. def toString(): String

    Definition Classes
    AnyRef → Any
  98. def update: Unit

    Attributes
    protected
  99. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FileSystemUtilities

Inherited from AnyRef

Inherited from Any

Ungrouped