diff options
| author | azidar | 2016-07-21 13:57:13 -0700 |
|---|---|---|
| committer | azidar | 2016-07-21 13:57:13 -0700 |
| commit | 0441a6df1eafd5db99c5cbcc0a07c5a6cb37f975 (patch) | |
| tree | 116ec7cbf7f94d70f5659abace4267f529b195f2 /src/main/scala/firrtl/passes/Checks.scala | |
| parent | ab340febdc7a5418da945f9b79624d36e66e26db (diff) | |
Added a Chirrtl check for undeclared wires, etc.
Diffstat (limited to 'src/main/scala/firrtl/passes/Checks.scala')
| -rw-r--r-- | src/main/scala/firrtl/passes/Checks.scala | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/main/scala/firrtl/passes/Checks.scala b/src/main/scala/firrtl/passes/Checks.scala index 94d509ed..a6762372 100644 --- a/src/main/scala/firrtl/passes/Checks.scala +++ b/src/main/scala/firrtl/passes/Checks.scala @@ -63,24 +63,6 @@ object CheckHighForm extends Pass with LazyLogging { class BadPrintfTrailingException extends PassException(s"${sinfo}: [module ${mname}] Bad printf format: trailing " + "\"%\"") class BadPrintfIncorrectNumException extends PassException(s"${sinfo}: [module ${mname}] Bad printf format: incorrect number of arguments") - // Utility functions - def hasFlip(t: Type): Boolean = { - var has = false - def findFlip(t: Type): Type = { - t map (findFlip) match { - case t: BundleType => { - for (f <- t.fields) { - if (f.flip == Flip) has = true - } - t - } - case t: Type => t - } - } - findFlip(t) - has - } - // TODO FIXME // - Do we need to check for uniquness on port names? // Global Variables |
