TestableSInt

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

Attributes

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

Members list

Value members

Concrete methods

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

Attributes

Definition Classes
Source
PeekPokeAPI.scala
override def isSigned: Boolean

Attributes

Definition Classes
Source
PeekPokeAPI.scala

Inherited methods

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

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: SInt): 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: SInt

Attributes

Source
PeekPokeAPI.scala