Class

Chisel

MapTester

Related Doc: package Chisel

Permalink

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

A tester to check a node graph from INPUTs to OUTPUTs directly

Source
Tester.scala
Linear Supertypes
Tester[T], FileSystemUtilities, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MapTester
  2. Tester
  3. FileSystemUtilities
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MapTester(c: T, testNodes: Seq[Node])

    Permalink

Type Members

  1. class BasicObserver extends Observer

    Permalink
    Definition Classes
    Tester
  2. case class DumpEvent(msg: String) extends Event with Product with Serializable

    Permalink
    Definition Classes
    Tester
  3. abstract class Event extends AnyRef

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

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

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

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

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

    Permalink
    Definition Classes
    Tester
  9. case class MuteEvent() extends Event with Product with Serializable

    Permalink
    Definition Classes
    Tester
  10. case class NoIdEvent(path: String) extends Event with Product with Serializable

    Permalink
    Definition Classes
    Tester
  11. class Observer extends AnyRef

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Tester
  20. case class ResetEvent(n: Int) extends Event with Product with Serializable

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

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

    Permalink
    Definition Classes
    Tester
  23. case class UnmuteEvent() extends Event with Product with Serializable

    Permalink
    Definition Classes
    Tester

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
    Definition Classes
    Tester
  11. val _outputs: ListSet[Bits]

    Permalink
    Definition Classes
    Tester
  12. var _t: Long

    Permalink
    Definition Classes
    Tester
  13. def addEvent(e: Event): Unit

    Permalink
    Definition Classes
    Tester
  14. def addObserver(o: Observer): Unit

    Permalink
    Definition Classes
    Tester
  15. final def asInstanceOf[T0]: T0

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

    Permalink
    Definition Classes
    FileSystemUtilities
  17. val chiselENV: String

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

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

    Permalink
    Definition Classes
    Tester
  20. val cmd: String

    Permalink
    Definition Classes
    Tester
  21. implicit def cmdToId(cmd: Tester.SIM_CMD.Value): Int

    Permalink
    Definition Classes
    Tester
  22. def copyToTarget(filename: String): Unit

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

    Permalink
    Definition Classes
    FileSystemUtilities
  24. def defTests(body: ⇒ Boolean): Boolean

    Permalink
  25. var delta: Int

    Permalink
    Definition Classes
    Tester
  26. def dumpName(data: Node): String

    Permalink
    Definition Classes
    Tester
  27. 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
  28. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    Tester
  31. 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

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

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

    Permalink
    Definition Classes
    Tester
  33. 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

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

    Permalink
    Definition Classes
    Tester
  35. 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

    Definition Classes
    Tester
  36. def expect(data: Bool, expected: Boolean): Boolean

    Permalink
    Definition Classes
    Tester
  37. def expect(data: Bool, expected: Boolean, msg: ⇒ String): Boolean

    Permalink

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

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

    returns

    the test passed

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

    Permalink
    Definition Classes
    Tester
  39. 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

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

    Permalink
    Definition Classes
    Tester
  41. 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

    Definition Classes
    Tester
  42. 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

    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

    Permalink
    Definition Classes
    Tester
  44. def expect(data: Bits, expected: BigInt, msg: ⇒ String): Boolean

    Permalink

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

    Definition Classes
    Tester
  46. def fail: Unit

    Permalink
    Definition Classes
    Tester
  47. def finalize(): Unit

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

    Permalink

    Complete the simulation and inspect all tests

    Complete the simulation and inspect all tests

    Definition Classes
    Tester
  49. def getChunk(id: Int): Int

    Permalink
    Attributes
    protected
    Definition Classes
    Tester
  50. final def getClass(): Class[_]

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

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

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

    Permalink
    Definition Classes
    Tester
  54. val ins: Seq[Node]

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

    Permalink

    Convert Bits to BigInt

    Convert Bits to BigInt

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

    Permalink

    Convert a Long to BigInt

    Convert a Long to BigInt

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

    Permalink

    Convert an Int to BigInt

    Convert an Int to BigInt

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

    Permalink

    Convert a Boolean to BigInt

    Convert a Boolean to BigInt

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

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

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

    Permalink
    Definition Classes
    Tester
  62. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  63. def newTestOutputString: String

    Permalink
    Definition Classes
    Tester
  64. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  66. val outs: Seq[Node]

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

    Permalink

    Interpret the data as a double precision float

    Interpret the data as a double precision float

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

    Permalink

    Interpret data as a single precision float

    Interpret data as a single precision float

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

    Permalink

    Peek at Aggregate data

    Peek at Aggregate data

    returns

    an Array of BigInts representing the data

    Definition Classes
    Tester
  70. 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

    Definition Classes
    Tester
  71. 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

    Definition Classes
    Tester
  72. 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

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

    Permalink

    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
  74. def poke(data: Dbl, x: Double): Unit

    Permalink

    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
  75. def poke(data: Flo, x: Float): Unit

    Permalink

    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
  76. def poke(data: Aggregate, x: Array[BigInt]): Unit

    Permalink

    Set the value of Aggregate data

    Set the value of Aggregate data

    Definition Classes
    Tester
  77. def poke(data: Bits, x: BigInt): Unit

    Permalink

    Set the value of some 'data' Node

    Set the value of some 'data' Node

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

    Permalink

    Set the value of some 'data' Node

    Set the value of some 'data' Node

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

    Permalink

    Set the value of some 'data' Node

    Set the value of some 'data' Node

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

    Permalink

    Set the value of some 'data' Node

    Set the value of some 'data' Node

    Definition Classes
    Tester
  81. 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

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

    Definition Classes
    Tester
  83. 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

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

    Permalink
    Definition Classes
    Tester
  85. 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

    Definition Classes
    Tester
  86. val rnd: Random

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

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

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

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

    Permalink
    Definition Classes
    Tester
  91. def step(svars: HashMap[Node, Node], ovars: HashMap[Node, Node] = HashMap.empty, isTrace: Boolean = true): Boolean

    Permalink
  92. 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

    Definition Classes
    Tester
    Note

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

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

    Permalink
    Definition Classes
    AnyRef
  94. def t: Long

    Permalink
    Definition Classes
    Tester
  95. def takeStep: Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Tester
  96. val target: String

    Permalink
    Definition Classes
    Tester
  97. val targetSubDir: String

    Permalink
    Definition Classes
    Tester
  98. val testNodes: Seq[Node]

    Permalink
  99. var tests: () ⇒ Boolean

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

    Permalink
    Definition Classes
    Tester
  101. def toString(): String

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

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

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

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

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

Inherited from Tester[T]

Inherited from FileSystemUtilities

Inherited from AnyRef

Inherited from Any

Ungrouped