TestableElement

chisel3.simulator.TestableElement
sealed trait TestableElement[T <: Element] extends PeekPokable[T]

Attributes

Source
PeekPokeAPI.scala
Graph
Supertypes
trait PeekPokable[T]
trait AnyTestableData[T]
trait Pokable[T]
trait Peekable[T]
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Concrete methods

final protected def expect[U](expected: U, sameValue: (Value, U) => Boolean, formatObserved: Value => String, formatExpected: U => String, buildMessage: (Value, U) => String, sourceInfo: SourceInfo): Unit

Attributes

Source
PeekPokeAPI.scala
final protected def expect[U](expected: U, sameValue: (Value, U) => Boolean, formatObserved: Value => String, formatExpected: U => String, sourceInfo: SourceInfo): Unit

Attributes

Source
PeekPokeAPI.scala
final protected def expect[U](expected: U, sameValue: (Value, U) => Boolean, buildMessage: (Value, U) => String, sourceInfo: SourceInfo): Unit

Attributes

Source
PeekPokeAPI.scala
def expect(expected: T, buildMessage: (T, T) => String)(implicit sourceInfo: SourceInfo): Unit

Expect the value of a data port to be equal to the expected value.

Expect the value of a data port to be equal to the expected value.

Value parameters

buildMessage

a function taking (observedValue: T, expectedValue: T) and returning a String message for the failure case

expected

the expected value

Attributes

Throws
FailedExpectationException

if the observed value does not match the expected value

Source
PeekPokeAPI.scala
override def expect(expected: T, message: String)(implicit sourceInfo: SourceInfo): Unit

Expect the value of a data port to be equal to the expected value.

Expect the value of a data port to be equal to the expected value.

Value parameters

expected

the expected value

message

a message for the failure case

Attributes

Throws
FailedExpectationException

if the observed value does not match the expected value

Definition Classes
Source
PeekPokeAPI.scala
final def expect(expected: BigInt)(implicit sourceInfo: SourceInfo): Unit

Attributes

Source
PeekPokeAPI.scala
final def expect(expected: BigInt, message: String)(implicit sourceInfo: SourceInfo): Unit

Attributes

Source
PeekPokeAPI.scala
override def expect(expected: T)(implicit sourceInfo: SourceInfo): Unit

Expect the value of a data port to be equal to the expected value.

Expect the value of a data port to be equal to the expected value.

Value parameters

expected

the expected value

Attributes

Throws
FailedExpectationException

if the observed value does not match the expected value

Definition Classes
Source
PeekPokeAPI.scala
protected def isSigned: Boolean

Attributes

Source
PeekPokeAPI.scala
def peek()(implicit sourceInfo: SourceInfo): T

Get the value of a data port as a literal.

Get the value of a data port as a literal.

Attributes

Returns

the value of the peeked data

Source
PeekPokeAPI.scala
final def peekValue(): Value

Attributes

Source
PeekPokeAPI.scala
def poke(literal: T): Unit

Sets the value of a data port.

Sets the value of a data port.

Value parameters

literal

the value to set, which must be a literal

Attributes

Source
PeekPokeAPI.scala
def poke(value: BigInt): Unit

Attributes

Source
PeekPokeAPI.scala

Inherited methods

Attributes

Inherited from:
AnyTestableData
Source
PeekPokeAPI.scala
protected def simulationPort: Port

Attributes

Inherited from:
AnyTestableData
Source
PeekPokeAPI.scala

Inherited and Abstract methods

protected def data: T

Attributes

Inherited from:
AnyTestableData
Source
PeekPokeAPI.scala