object CompilerUtils extends LazyLogging
- Annotations
- @deprecated
- Deprecated
(Since version FIRRTL 1.3) This will be removed in 1.4
- Source
- Compiler.scala
- Alphabetic
- By Inheritance
- CompilerUtils
- LazyLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getLogger: Logger
- Definition Classes
- LazyLogging
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated
-
def
getLoweringTransforms(inputForm: CircuitForm, outputForm: CircuitForm): Seq[Transform]
Generates a sequence of Transforms to lower a Firrtl circuit
Generates a sequence of Transforms to lower a Firrtl circuit
- inputForm
CircuitForm to lower from
- outputForm
CircuitForm to lower to
- returns
Sequence of transforms that will lower if outputForm is lower than inputForm
- Annotations
- @deprecated
- Deprecated
(Since version FIRRTL 1.3) Use a TransformManager requesting which transforms you want to run. This will be removed in 1.4.
-
def
mergeTransforms(lowering: Seq[Transform], custom: Seq[Transform]): Seq[Transform]
Merge a Seq of lowering transforms with custom transforms
Merge a Seq of lowering transforms with custom transforms
Custom Transforms are inserted based on their Transform.inputForm and Transform.outputForm with any Emitters being scheduled last. Custom transforms are inserted in order at the last location in the Seq of transforms where previous.outputForm == customTransform.inputForm. If a customTransform outputs a higher form than input, getLoweringTransforms is used to relower the circuit.
- Annotations
- @deprecated
- Deprecated
(Since version FIRRTL 1.3) Use a TransformManager requesting which transforms you want to run. This will be removed in 1.4.
// Let Transforms be represented by CircuitForm => CircuitForm val A = HighForm => MidForm val B = MidForm => LowForm val lowering = List(A, B) // Assume these transforms are used by getLoweringTransforms // Some custom transforms val C = LowForm => LowForm val D = MidForm => MidForm val E = LowForm => HighForm // All of the following comparisons are true mergeTransforms(lowering, List(C)) == List(A, B, C) mergeTransforms(lowering, List(D)) == List(A, D, B) mergeTransforms(lowering, List(E)) == List(A, B, E, A, B) mergeTransforms(lowering, List(C, E)) == List(A, B, C, E, A, B) mergeTransforms(lowering, List(E, C)) == List(A, B, E, A, B, C) // Notice that in the following, custom transform order is NOT preserved (see note) mergeTransforms(lowering, List(C, D)) == List(A, D, B, C)
- Note
Order will be preserved for custom transforms so long as the inputForm of a latter transforms is equal to or lower than the outputForm of the previous transform.
Example:
This is the documentation for Firrtl.