Packages

t

chisel3

BackendCompilationUtilities

trait BackendCompilationUtilities extends firrtl.util.BackendCompilationUtilities

The Driver provides methods to invoke the chisel3 compiler and the firrtl compiler. By default firrtl is automatically run after chisel. an ExecutionOptionsManager is needed to manage options. It can parser command line arguments or coordinate multiple chisel toolchain tools options.

Source
Driver.scala
Examples:
  1. val optionsManager = new ExecutionOptionsManager("chisel3")
        with HasFirrtlOptions
        with HasChiselExecutionOptions {
      commonOptions = CommonOption(targetDirName = "my_target_dir")
      chiselOptions = ChiselExecutionOptions(runFirrtlCompiler = false)
    }
    chisel3.Driver.execute(optionsManager, () => new Dut)

    or via command line arguments

  2. ,
  3. args = "--no-run-firrtl --target-dir my-target-dir".split(" +")
    chisel3.execute(args, () => new DUT)
Linear Supertypes
firrtl.util.BackendCompilationUtilities, LazyLogging, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BackendCompilationUtilities
  2. BackendCompilationUtilities
  3. LazyLogging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. lazy val TestDirectory: File
    Definition Classes
    BackendCompilationUtilities
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. def compileFirrtlToVerilog(prefix: String, dir: File): Boolean

    Compile Chirrtl to Verilog by invoking Firrtl inside the same JVM

    Compile Chirrtl to Verilog by invoking Firrtl inside the same JVM

    prefix

    basename of the file

    dir

    directory where file lives

    returns

    true if compiler completed successfully

  8. def copyResourceToFile(name: String, file: File): Unit
    Definition Classes
    BackendCompilationUtilities
  9. def cppToExe(prefix: String, dir: File): ProcessBuilder
    Definition Classes
    BackendCompilationUtilities
  10. def createTestDirectory(testName: String): File
    Definition Classes
    BackendCompilationUtilities
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def executeExpectingFailure(prefix: String, dir: File, assertionMsg: String): Boolean
    Definition Classes
    BackendCompilationUtilities
  14. def executeExpectingSuccess(prefix: String, dir: File): Boolean
    Definition Classes
    BackendCompilationUtilities
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def firrtlToVerilog(prefix: String, dir: File): ProcessBuilder
    Definition Classes
    BackendCompilationUtilities
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. val logger: Logger
    Attributes
    protected
    Definition Classes
    LazyLogging
  21. def loggingProcessLogger: ProcessLogger
    Definition Classes
    BackendCompilationUtilities
  22. def makeHarness(template: (String) ⇒ String, post: String)(f: File): File
    Definition Classes
    BackendCompilationUtilities
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def timeStamp: String
    Definition Classes
    BackendCompilationUtilities
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def verilogToCpp(dutFile: String, dir: File, vSources: Seq[File], cppHarness: File, suppressVcd: Boolean, resourceFileName: String): ProcessBuilder
    Definition Classes
    BackendCompilationUtilities
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  33. def yosysExpectFailure(customTop: String, referenceTop: String, testDir: File, resets: Seq[(Int, String, Int)]): Boolean
    Definition Classes
    BackendCompilationUtilities
  34. def yosysExpectSuccess(customTop: String, referenceTop: String, testDir: File, resets: Seq[(Int, String, Int)]): Boolean
    Definition Classes
    BackendCompilationUtilities

Inherited from firrtl.util.BackendCompilationUtilities

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped