TestableBool

chisel3.simulator.PeekPokeAPI.TestableBool
final implicit class TestableBool(val data: Bool) extends TestableElement[Bool]

Attributes

Source
PeekPokeAPI.scala
Graph
Supertypes
trait PeekPokable[Bool]
trait Pokable[Bool]
trait Peekable[Bool]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def encode(width: Int, value: BigInt): Bool

Attributes

Definition Classes
Source
PeekPokeAPI.scala
override def expect(expected: Bool)(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
def expect(value: Boolean)(implicit sourceInfo: SourceInfo): Unit

Attributes

Source
PeekPokeAPI.scala
def peekBoolean(): Boolean

Attributes

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

Attributes

Source
PeekPokeAPI.scala

Inherited methods

final def expect(expected: BigInt, message: String)(implicit sourceInfo: SourceInfo): Unit

Attributes

Inherited from:
TestableElement
Source
PeekPokeAPI.scala
final def expect(expected: BigInt)(implicit sourceInfo: SourceInfo): Unit

Attributes

Inherited from:
TestableElement
Source
PeekPokeAPI.scala
override def expect(expected: Bool, 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
Inherited from:
TestableElement
Source
PeekPokeAPI.scala
def expect(expected: Bool, buildMessage: (Bool, Bool) => 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

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

Attributes

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

Attributes

Inherited from:
TestableElement
Source
PeekPokeAPI.scala
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

Inherited from:
TestableElement
Source
PeekPokeAPI.scala
protected def isSigned: Boolean

Attributes

Inherited from:
TestableElement
Source
PeekPokeAPI.scala
def peek()(implicit sourceInfo: SourceInfo): Bool

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

Inherited from:
TestableElement
Source
PeekPokeAPI.scala
final def peekValue(): Value

Attributes

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

Attributes

Inherited from:
TestableElement
Source
PeekPokeAPI.scala
def poke(literal: Bool): 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

Inherited from:
TestableElement
Source
PeekPokeAPI.scala

Attributes

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

Attributes

Inherited from:
AnyTestableData
Source
PeekPokeAPI.scala

Concrete fields

val data: Bool

Attributes

Source
PeekPokeAPI.scala