Trait

chisel3

BackendCompilationUtilities

Related Doc: package chisel3

Permalink

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. args = "--no-run-firrtl --target-dir my-target-dir".split(" +")
    chisel3.execute(args, () => new DUT)
  2. ,
  3. 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

Linear Supertypes
Known Subclasses
Type Hierarchy
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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. lazy val TestDirectory: File

    Permalink
    Definition Classes
    BackendCompilationUtilities
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def compileFirrtlToVerilog(prefix: String, dir: File): Boolean

    Permalink

    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

    Permalink
    Definition Classes
    BackendCompilationUtilities
  9. def cppToExe(prefix: String, dir: File): ProcessBuilder

    Permalink
    Definition Classes
    BackendCompilationUtilities
  10. def createTestDirectory(testName: String): File

    Permalink
    Definition Classes
    BackendCompilationUtilities
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def executeExpectingFailure(prefix: String, dir: File, assertionMsg: String): Boolean

    Permalink
    Definition Classes
    BackendCompilationUtilities
  14. def executeExpectingSuccess(prefix: String, dir: File): Boolean

    Permalink
    Definition Classes
    BackendCompilationUtilities
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def firrtlToVerilog(prefix: String, dir: File): ProcessBuilder

    Permalink
    Definition Classes
    BackendCompilationUtilities
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  21. def loggingProcessLogger: ProcessLogger

    Permalink
    Definition Classes
    BackendCompilationUtilities
  22. def makeHarness(template: (String) ⇒ String, post: String)(f: File): File

    Permalink
    Definition Classes
    BackendCompilationUtilities
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def timeStamp: String

    Permalink
    Definition Classes
    BackendCompilationUtilities
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def verilogToCpp(dutFile: String, dir: File, vSources: Seq[File], cppHarness: File, suppressVcd: Boolean, resourceFileName: String): ProcessBuilder

    Permalink
    Definition Classes
    BackendCompilationUtilities
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def yosysExpectFailure(customTop: String, referenceTop: String, testDir: File, resets: Seq[(Int, String, Int)]): Boolean

    Permalink
    Definition Classes
    BackendCompilationUtilities
  34. def yosysExpectSuccess(customTop: String, referenceTop: String, testDir: File, resets: Seq[(Int, String, Int)]): Boolean

    Permalink
    Definition Classes
    BackendCompilationUtilities

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped