diff options
| author | Jack | 2016-05-09 17:31:14 -0700 |
|---|---|---|
| committer | Jack Koenig | 2016-06-10 16:32:37 -0700 |
| commit | 1eb8be78938721dd0d609f684c159bc1d1ddcfd6 (patch) | |
| tree | 55e66afc08893ae8bb105340d7fc2af49122c5a5 /src/main/scala/firrtl/passes/Checks.scala | |
| parent | cd0973b58c70f5b1e91f1d9a2abdf99a30f3f669 (diff) | |
API Cleanup - Width
Add simple documentation
trait Width -> abstract class Width
case class UnknownWidth -> case object UnknownWidth
Diffstat (limited to 'src/main/scala/firrtl/passes/Checks.scala')
| -rw-r--r-- | src/main/scala/firrtl/passes/Checks.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/firrtl/passes/Checks.scala b/src/main/scala/firrtl/passes/Checks.scala index 0857382b..a88ad051 100644 --- a/src/main/scala/firrtl/passes/Checks.scala +++ b/src/main/scala/firrtl/passes/Checks.scala @@ -290,8 +290,8 @@ object CheckTypes extends Pass with LazyLogging { class ValidIfPassiveTypes(info:Info) extends PassException(s"${info}: [module ${mname}] Must validif a passive type.") class ValidIfCondUInt(info:Info) extends PassException(s"${info}: [module ${mname}] A validif condition must be of type UInt.") //;---------------- Helper Functions -------------- - def ut () : UIntType = UIntType(UnknownWidth()) - def st () : SIntType = SIntType(UnknownWidth()) + def ut () : UIntType = UIntType(UnknownWidth) + def st () : SIntType = SIntType(UnknownWidth) def check_types_primop (e:DoPrim, errors:Errors, info:Info) : Unit = { def all_same_type (ls:Seq[Expression]) : Unit = { |
