aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/Utils.scala
diff options
context:
space:
mode:
authorDonggyu Kim2016-09-02 17:28:39 -0700
committerDonggyu Kim2016-09-13 13:36:38 -0700
commit4cb46ca17da26c7ccc0b66a6be489a49fb2e9173 (patch)
treea283ed9716f10cee128a9a782dada088bba97d5f /src/main/scala/firrtl/Utils.scala
parent590c3f2cd959c3c125c6511287294aec8409b57b (diff)
remove Utils.{width_BANG, long_BANG}
Diffstat (limited to 'src/main/scala/firrtl/Utils.scala')
-rw-r--r--src/main/scala/firrtl/Utils.scala16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/main/scala/firrtl/Utils.scala b/src/main/scala/firrtl/Utils.scala
index 28f1de05..d9c74840 100644
--- a/src/main/scala/firrtl/Utils.scala
+++ b/src/main/scala/firrtl/Utils.scala
@@ -209,22 +209,6 @@ object Utils extends LazyLogging {
case v => UnknownType
}
-////=====================================
- def width_BANG(t: Type) : Width = t match {
- case g: GroundType => g.width
- case t => error("No width!")
- }
- def width_BANG(e: Expression) : Width = width_BANG(e.tpe)
- def long_BANG(t: Type): Long = t match {
- case (g: GroundType) => g.width match {
- case IntWidth(x) => x.toLong
- case _ => error(s"Expecting IntWidth, got: ${g.width}")
- }
- case (t: BundleType) => (t.fields foldLeft 0)((w, f) =>
- w + long_BANG(f.tpe).toInt)
- case (t: VectorType) => t.size * long_BANG(t.tpe)
- }
-
// =================================
def error(str: String) = throw new FIRRTLException(str)