TestableVec

chisel3.simulator.PeekPokeAPI.TestableVec
implicit class TestableVec[T <: Data](val data: Vec[T]) extends TestableAggregate[Vec[T]]

Attributes

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

Members list

Value members

Concrete methods

override def expect(expected: Vec[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
def expect(expected: Vec[T], buildMessage: (Vec[T], Vec[T], Int) => String, allowPartial: Boolean = ...)(implicit sourceInfo: SourceInfo): Unit

Attributes

Source
PeekPokeAPI.scala
override def expectPartial(expected: Vec[T], message: String)(implicit sourceInfo: SourceInfo): Unit

Expect the value of a data port to be equal to the expected value, skipping all uninitialized elements.

Expect the value of a data port to be equal to the expected value, skipping all uninitialized elements.

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
override def peek()(implicit sourceInfo: SourceInfo): Vec[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

Definition Classes
Source
PeekPokeAPI.scala
override def poke(literal: Vec[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

Definition Classes
Source
PeekPokeAPI.scala

Inherited methods

def expect(expected: Vec[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

Inherited from:
Peekable
Source
PeekPokeAPI.scala
def expectPartial(expected: Vec[T])(implicit sourceInfo: SourceInfo): Unit

Expect the value of a data port to be equal to the expected value, skipping all uninitialized elements.

Expect the value of a data port to be equal to the expected value, skipping all uninitialized elements.

Value parameters

expected

the expected value

Attributes

Throws
FailedExpectationException

if the observed value does not match the expected value

Inherited from:
TestableAggregate
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: Vec[T]

Attributes

Source
PeekPokeAPI.scala