aboutsummaryrefslogtreecommitdiff
path: root/test/errors
diff options
context:
space:
mode:
authorazidar2015-08-26 15:07:12 -0700
committerazidar2015-08-26 15:07:53 -0700
commitb6bf5ee9b29a117c1fcb3b7ec19ce1ce07132ffd (patch)
treec65e8d722c77fbbaa42c4b3d98e3d0ba6cdb9fca /test/errors
parentcf1fe102a99efee192288061849165072c699c2e (diff)
Fixed bug where firrtl was incorrectly judging the width of a bigint. #36 #37.
Diffstat (limited to 'test/errors')
-rw-r--r--test/errors/width/Conservative.fir6
-rw-r--r--test/errors/width/SmallWidth.fir3
2 files changed, 7 insertions, 2 deletions
diff --git a/test/errors/width/Conservative.fir b/test/errors/width/Conservative.fir
new file mode 100644
index 00000000..43aa648f
--- /dev/null
+++ b/test/errors/width/Conservative.fir
@@ -0,0 +1,6 @@
+; RUN: firrtl -i %s -o %s.v -X verilog -p ciwT 2>&1 | tee %s.out | FileCheck %s
+; CHECK: Width too small for UIntValue.
+
+circuit Top :
+ module Top :
+ node bar = UInt<1>("h1111")
diff --git a/test/errors/width/SmallWidth.fir b/test/errors/width/SmallWidth.fir
index 9e26699e..0ee60ec0 100644
--- a/test/errors/width/SmallWidth.fir
+++ b/test/errors/width/SmallWidth.fir
@@ -1,6 +1,5 @@
; RUN: firrtl -i %s -o %s.v -X verilog -p ciwT 2>&1 | tee %s.out | FileCheck %s
-; CHECK: Width too small for constant "h121".
-; CHECK: Width too small for constant "h13333".
+; CHECK: Width too small for UIntValue.
circuit Top :
module Top :