summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/scala/chisel3/stage/ChiselOptions.scala27
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 )
+
+ }
+
+}