From b6bf5ee9b29a117c1fcb3b7ec19ce1ce07132ffd Mon Sep 17 00:00:00 2001 From: azidar Date: Wed, 26 Aug 2015 15:07:12 -0700 Subject: Fixed bug where firrtl was incorrectly judging the width of a bigint. #36 #37. --- test/errors/width/Conservative.fir | 6 ++++++ test/errors/width/SmallWidth.fir | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 test/errors/width/Conservative.fir (limited to 'test/errors/width') 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 : -- cgit v1.2.3