diff options
| author | Schuyler Eldridge | 2019-01-10 12:52:00 -0500 |
|---|---|---|
| committer | Schuyler Eldridge | 2019-05-22 16:17:17 -0400 |
| commit | f592422fc1dcc374139bbeb84a814134c5e58ac4 (patch) | |
| tree | 61dae6119c5e3e9dcf4d393049db02bbe7dbb16a | |
| parent | 0a8ffcb856da4007d1a39503c629295bee42acfb (diff) | |
Add chisel3.stage.ChiselOptions
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
| -rw-r--r-- | src/main/scala/chisel3/stage/ChiselOptions.scala | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/scala/chisel3/stage/ChiselOptions.scala b/src/main/scala/chisel3/stage/ChiselOptions.scala new file mode 100644 index 00000000..f7b9ccdf --- /dev/null +++ b/src/main/scala/chisel3/stage/ChiselOptions.scala @@ -0,0 +1,27 @@ +// See LICENSE for license details. + +package chisel3.stage + +import chisel3.internal.firrtl.Circuit + +class ChiselOptions private[stage] ( + val runFirrtlCompiler: Boolean = true, + val printFullStackTrace: Boolean = false, + val outputFile: Option[String] = None, + val chiselCircuit: Option[Circuit] = None) { + + private[stage] def copy( + runFirrtlCompiler: Boolean = runFirrtlCompiler, + printFullStackTrace: Boolean = printFullStackTrace, + outputFile: Option[String] = outputFile, + chiselCircuit: Option[Circuit] = chiselCircuit ): ChiselOptions = { + + new ChiselOptions( + runFirrtlCompiler = runFirrtlCompiler, + printFullStackTrace = printFullStackTrace, + outputFile = outputFile, + chiselCircuit = chiselCircuit ) + + } + +} |
