summaryrefslogtreecommitdiff
path: root/chiselFrontend/src/main/scala/chisel3/internal
diff options
context:
space:
mode:
authorJim Lawson2016-09-29 11:44:09 -0700
committerJim Lawson2016-09-29 11:44:09 -0700
commiteb5e5dc30019be342b7a0534b425bf33b7984ce3 (patch)
tree1f04fd7157a17cc45fe1ff0835500d93809809fd /chiselFrontend/src/main/scala/chisel3/internal
parent12a651513541d6c96e3b709b424d5d3384179076 (diff)
Massive rename of CompileOptions.
Massage CompileOption names in an attempt to preserve default (Strict) CompileOptions in the absence of explicit imports. NOTE: Since the default is now strict, we may encounter errors when we generate connections for clients (i.e., in Vec.do_apply() when we wire up a sequence). We should really thread the CompileOptions through the macro system so the client's implicits are used.
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/internal')
-rw-r--r--chiselFrontend/src/main/scala/chisel3/internal/CompileOptions.scala41
1 files changed, 0 insertions, 41 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/internal/CompileOptions.scala b/chiselFrontend/src/main/scala/chisel3/internal/CompileOptions.scala
deleted file mode 100644
index 2b913908..00000000
--- a/chiselFrontend/src/main/scala/chisel3/internal/CompileOptions.scala
+++ /dev/null
@@ -1,41 +0,0 @@
-// See LICENSE for license details.
-
-package chisel3.internal
-
-import scala.language.experimental.macros
-import scala.reflect.macros.blackbox.Context
-
-trait CompileOptions {
- // Should Bundle connections require a strict match of fields.
- // If true and the same fields aren't present in both source and sink, a MissingFieldException,
- // MissingLeftFieldException, or MissingRightFieldException will be thrown.
- val connectFieldsMustMatch: Boolean
- val declaredTypeMustBeUnbound: Boolean
- val requireIOWrap: Boolean
- val dontTryConnectionsSwapped: Boolean
- val dontAssumeDirectionality: Boolean
-}
-
-trait ExplicitCompileOptions extends CompileOptions
-
-object ExplicitCompileOptions {
- // Provides a low priority Strict default. Can be overridden by importing the NotStrict option.
- implicit def materialize: ExplicitCompileOptions = chisel3.Strict.CompileOptions
-}
-
-///** Initialize compilation options from a string map.
-// *
-// * @param optionsMap the map from "option" to "value"
-// */
-//class CompileOptions(optionsMap: Map[String, String]) {
-// // The default for settings related to "strictness".
-// val strictDefault: String = optionsMap.getOrElse("strict", "false")
-// // Should Bundle connections require a strict match of fields.
-// // If true and the same fields aren't present in both source and sink, a MissingFieldException,
-// // MissingLeftFieldException, or MissingRightFieldException will be thrown.
-// val connectFieldsMustMatch: Boolean = optionsMap.getOrElse("connectFieldsMustMatch", strictDefault).toBoolean
-// val declaredTypeMustBeUnbound: Boolean = optionsMap.getOrElse("declaredTypeMustBeUnbound", strictDefault).toBoolean
-// val requireIOWrap: Boolean = optionsMap.getOrElse("requireIOWrap", strictDefault).toBoolean
-// val dontTryConnectionsSwapped: Boolean = optionsMap.getOrElse("dontTryConnectionsSwapped", strictDefault).toBoolean
-// val dontAssumeDirectionality: Boolean = optionsMap.getOrElse("dontAssumeDirectionality", strictDefault).toBoolean
-//}