ExpectationValueFormat

chisel3.simulator.ExpectationValueFormat

Formatting options for values rendered by expect failure messages.

Attributes

Source
PeekPokeAPI.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object Bin extends Type

Render the numeric part as binary (prefixed with 0b).

Render the numeric part as binary (prefixed with 0b).

Attributes

Source
PeekPokeAPI.scala
Supertypes
trait Type
class Object
trait Matchable
class Any
Self type
Bin.type
object Custom

Attributes

Source
PeekPokeAPI.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Custom.type
object Dec extends Type

Render values using their decimal display.

Render values using their decimal display.

Attributes

Source
PeekPokeAPI.scala
Supertypes
trait Type
class Object
trait Matchable
class Any
Self type
Dec.type
final case class Failure(observed: Value, expected: Value)

Raw failure context passed to formatters.

Raw failure context passed to formatters.

Attributes

Source
PeekPokeAPI.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Hex extends Type

Render the numeric part as hexadecimal (prefixed with 0x) and grouped by bytes.

Render the numeric part as hexadecimal (prefixed with 0x) and grouped by bytes.

Attributes

Source
PeekPokeAPI.scala
Supertypes
trait Type
class Object
trait Matchable
class Any
Self type
Hex.type
final case class Rendered(observed: String, expected: String, message: String)

Fully rendered failure output.

Fully rendered failure output.

Attributes

Source
PeekPokeAPI.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait Type

Value format type.

Value format type.

Attributes

Source
PeekPokeAPI.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Bin
object Dec
object Hex
final case class Value(chiselType: String, signedValue: BigInt, bitWidth: Int, isSigned: Boolean, displayString: String)

Context passed to custom formatters.

Context passed to custom formatters.

Value parameters

bitWidth

Bit width of the rendered value

chiselType

Chisel data type string (e.g. UInt<32>)

displayString

Value rendered using the decimal display for this context

isSigned

Whether the data type is signed

signedValue

Numeric value as observed by the simulator for this data type

Attributes

Source
PeekPokeAPI.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all