summaryrefslogtreecommitdiff
path: root/chiselFrontend/src/main/scala/chisel3/internal/CompileOptions.scala
diff options
context:
space:
mode:
authorRichard Lin2016-09-29 15:37:44 -0700
committerGitHub2016-09-29 15:37:44 -0700
commit3368a032d7c8ef1022bd9330ef4c4931367ba46b (patch)
tree242e9c5d1c5e63bb73bb3cb2c11d056a9e3bbcb9 /chiselFrontend/src/main/scala/chisel3/internal/CompileOptions.scala
parent12a651513541d6c96e3b709b424d5d3384179076 (diff)
parent96fb6a5e2c781b20470d02eac186b1b129c20bdf (diff)
Merge pull request #302 from ucb-bar/gsdt-renamecompileoptions
Massive rename of CompileOptions.
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/internal/CompileOptions.scala')
-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
-//}