Class

Chisel

Tester

Related Doc: package Chisel

Permalink

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
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Tester
  2. FileSystemUtilities
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Tester(c: T, isTrace: Boolean = true, _base: Int = 16)

    Permalink

    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)

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val CC: String

    Permalink
    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  5. val CCFLAGS: String

    Permalink
    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  6. val CPPFLAGS: String

    Permalink
    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  7. val CXX: String

    Permalink
    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  8. val CXXFLAGS: String

    Permalink
    Attributes
    protected
    Definition Classes
    FileSystemUtilities
  9. val LDFLAGS: String

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

    Permalink
  11. val _outputs: ListSet[Bits]

    Permalink
  12. final def asInstanceOf[T0]: T0

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

    Permalink
    Definition Classes
    FileSystemUtilities
  14. val chiselENV: String

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. val cmd: String

    Permalink
  17. val cmdChannelName: String

    Permalink
  18. implicit def cmdToId(cmd: SIM_CMD.Value): Int

    Permalink
  19. def copyToTarget(filename: String): Unit

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

    Permalink
    Definition Classes
    FileSystemUtilities
  21. var delta: Int

    Permalink
  22. def dumpName(data: Node): String

    Permalink
  23. def ensureDir(dir: String): String

    Permalink

    Ensures a directory *dir* exists on the filesystem.

    Ensures a directory *dir* exists on the filesystem.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. val exitValue: Future[Int]

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

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

    Permalink

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

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

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

    Permalink

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

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

    returns

    the test passed

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

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

    Permalink

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

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

    returns

    the test passed

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

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

    Permalink

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

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

    returns

    the test passed

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

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

    Permalink

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

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

    returns

    the test passed

  37. def expect(data: Aggregate, expected: Array[BigInt]): Boolean

    Permalink

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

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

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

    Permalink

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

  40. def expect(good: Boolean, msg: ⇒ String): Boolean

    Permalink

    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

  41. def fail: Unit

    Permalink
  42. var failureTime: Int

    Permalink

    Indicate a failure has occurred.

  43. def finalize(): Unit

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

    Permalink

    Complete the simulation and inspect all tests

  45. def getChunk(id: Int): Int

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

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

    Permalink
    Attributes
    protected
  48. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  49. val inChannelName: String

    Permalink
  50. def int(x: Bits): BigInt

    Permalink

    Convert Bits to BigInt

  51. def int(x: Long): BigInt

    Permalink

    Convert a Long to BigInt

  52. def int(x: Int): BigInt

    Permalink

    Convert an Int to BigInt

  53. def int(x: Boolean): BigInt

    Permalink

    Convert a Boolean to BigInt

  54. final def isInstanceOf[T0]: Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  57. def newTestOutputString: String

    Permalink
  58. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  60. var ok: Boolean

    Permalink
  61. val outChannelName: String

    Permalink
  62. def peek(data: Dbl): Double

    Permalink

    Interpret the data as a double precision float

  63. def peek(data: Flo): Float

    Permalink

    Interpret data as a single precision float

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

    Permalink

    Peek at Aggregate data

    Peek at Aggregate data

    returns

    an Array of BigInts representing the data

  65. def peek(data: Bits): BigInt

    Permalink

    Peek at the value of some bits

    Peek at the value of some bits

    returns

    a BigInt representation of the bits

  66. def peekAt[T <: Bits](data: Mem[T], off: Int): BigInt

    Permalink

    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

  67. def peekNode(node: Node, off: Option[Int] = None): BigInt

    Permalink

    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

  68. def peekPath(path: String): BigInt

    Permalink

    Peek at the value of a node based on the path

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

    Permalink

    Set the value of a hardware double precision floating point representation

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

    Permalink

    Set the value of a hardware single precision floating point representation

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

    Permalink

    Set the value of Aggregate data

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

    Permalink

    Set the value of some 'data' Node

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

    Permalink

    Set the value of some 'data' Node

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

    Permalink

    Set the value of some 'data' Node

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

    Permalink

    Set the value of some 'data' Node

  76. def pokeAt[T <: Bits](data: Mem[T], value: BigInt, off: Int): Unit

    Permalink

    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

  77. def pokeNode(node: Node, v: BigInt, off: Option[Int] = None): Unit

    Permalink

    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

  78. def pokePath(path: String, v: BigInt, force: Boolean = false): Unit

    Permalink

    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)
  79. def printfs: Vector[String]

    Permalink
  80. val process: Process

    Permalink
  81. def reset(n: Int = 1): Unit

    Permalink

    Send reset to the hardware

    Send reset to the hardware

    n

    number of cycles to hold reset for, default 1

  82. val rnd: Random

    Permalink
  83. def run(cmd: String): Boolean

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

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

    Permalink
  86. def signed_fix(dtype: Bits, rv: BigInt): BigInt

    Permalink
  87. def step(n: Int): Unit

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  89. var t: Int

    Permalink
  90. def takeStep: Unit

    Permalink
    Attributes
    protected
  91. val target: String

    Permalink
  92. val targetSubDir: String

    Permalink
  93. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  94. def update: Unit

    Permalink
    Attributes
    protected
  95. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from FileSystemUtilities

Inherited from AnyRef

Inherited from Any

Ungrouped