object Driver
The driver provides methods to access the firrtl compiler. Invoke the compiler with either a FirrtlExecutionOption
firrtl.Driver.execute(Array("--top-name Dummy --compiler verilog".split(" +"))
each approach has its own endearing aspects
, val optionsManager = new ExecutionOptionsManager("firrtl") optionsManager.register( FirrtlExecutionOptionsKey -> new FirrtlExecutionOptions(topName = "Dummy", compilerName = "verilog")) firrtl.Driver.execute(optionsManager)
or a series of command line arguments
- See also
CompilerUtils.mergeTransforms to see how customTransformations are inserted
firrtlTests/DriverSpec.scala in the test directory for a lot more examples
- Alphabetic
- By Inheritance
- Driver
- 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
dramaticError(message: String): Unit
print the message in red
print the message in red
- message
error message
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
execute(args: Array[String]): FirrtlExecutionResult
this is a wrapper for execute that builds the options from a standard command line args, for example, like strings passed to main()
this is a wrapper for execute that builds the options from a standard command line args, for example, like strings passed to main()
- args
an Array of string s containing legal arguments
-
def
execute(optionsManager: ExecutionOptionsManager with HasFirrtlOptions): FirrtlExecutionResult
Run the firrtl compiler using the provided option
Run the firrtl compiler using the provided option
- optionsManager
the desired flags to the compiler
- returns
a FirrtlExecutionResult indicating success or failure, provide access to emitted data on success for downstream tools as desired
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
loadAnnotations(optionsManager: ExecutionOptionsManager with HasFirrtlOptions): Unit
Load annotation file based on options
Load annotation file based on options
- optionsManager
use optionsManager config to load annotation file if it exists update the firrtlOptions with new annotations if it does
- def main(args: Array[String]): Unit
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
compile(input: String, output: String, compiler: Compiler, infoMode: InfoMode = IgnoreInfo, customTransforms: Seq[Transform] = Seq.empty, annotations: AnnotationMap = AnnotationMap(Seq.empty)): String
- Annotations
- @deprecated
- Deprecated
(Since version firrtl 1.0) Please use execute
This is the documentation for Firrtl.