aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/passes/Checks.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/passes/Checks.scala
parent590c3f2cd959c3c125c6511287294aec8409b57b (diff)
remove Utils.{width_BANG, long_BANG}
Diffstat (limited to 'src/main/scala/firrtl/passes/Checks.scala')
-rw-r--r--src/main/scala/firrtl/passes/Checks.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/scala/firrtl/passes/Checks.scala b/src/main/scala/firrtl/passes/Checks.scala
index bba3efe7..16b16ff7 100644
--- a/src/main/scala/firrtl/passes/Checks.scala
+++ b/src/main/scala/firrtl/passes/Checks.scala
@@ -572,12 +572,12 @@ object CheckWidths extends Pass {
errors append new WidthTooSmall(info, mname, e.value)
case _ =>
}
- case DoPrim(Bits, Seq(a), Seq(hi, lo), _) if long_BANG(a.tpe) <= hi =>
- errors append new BitsWidthException(info, mname, hi, long_BANG(a.tpe))
- case DoPrim(Head, Seq(a), Seq(n), _) if long_BANG(a.tpe) < n =>
- errors append new HeadWidthException(info, mname, n, long_BANG(a.tpe))
- case DoPrim(Tail, Seq(a), Seq(n), _) if long_BANG(a.tpe) <= n =>
- errors append new TailWidthException(info, mname, n, long_BANG(a.tpe))
+ case DoPrim(Bits, Seq(a), Seq(hi, lo), _) if bitWidth(a.tpe) <= hi =>
+ errors append new BitsWidthException(info, mname, hi, bitWidth(a.tpe))
+ case DoPrim(Head, Seq(a), Seq(n), _) if bitWidth(a.tpe) < n =>
+ errors append new HeadWidthException(info, mname, n, bitWidth(a.tpe))
+ case DoPrim(Tail, Seq(a), Seq(n), _) if bitWidth(a.tpe) <= n =>
+ errors append new TailWidthException(info, mname, n, bitWidth(a.tpe))
case _ =>
}
e map check_width_w(info, mname) map check_width_e(info, mname)