Translator

firrtl.options.Translator
trait Translator[A, B] extends TransformLike[A]

A TransformLike that internally ''translates'' the input type to some other type, transforms the internal type, and converts back to the original type.

This is intended to be used to insert a TransformLike parameterized by type B into a sequence of TransformLikes parameterized by type A.

Type parameters

A

the type of the TransformLike

B

the internal type

Attributes

Deprecated
[Since version Chisel 7.0.0] All APIs in package firrtl are deprecated.
Source
Phase.scala
Graph
Supertypes
trait TransformLike[A]
trait LazyLogging
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

protected def internalTransform(b: B): B

A transform on an internal type

A transform on an internal type

Value parameters

b

an object of type B

Attributes

Returns

an object of type B

Source
Phase.scala

Concrete methods

final override def transform(a: A): A

Convert the input object to the internal type, transform the internal type, and convert back to the original type

Convert the input object to the internal type, transform the internal type, and convert back to the original type

Attributes

Definition Classes
Source
Phase.scala

Inherited methods

Attributes

Inherited from:
LazyLogging
Source
Logger.scala

Inherited and Abstract methods

def name: String

An identifier of this TransformLike that can be used for logging and informational printing

An identifier of this TransformLike that can be used for logging and informational printing

Attributes

Inherited from:
TransformLike
Source
Phase.scala

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
LazyLogging
Source
Logger.scala

Implicits

Implicits

implicit protected def aToB(a: A): B

A method converting type A into type B

A method converting type A into type B

Value parameters

an

object of type A

Attributes

Returns

an object of type B

Source
Phase.scala
implicit protected def bToA(b: B): A

A method converting type B back into type A

A method converting type B back into type A

Value parameters

an

object of type B

Attributes

Returns

an object of type A

Source
Phase.scala