aboutsummaryrefslogtreecommitdiff
path: root/test/passes/infer-widths
diff options
context:
space:
mode:
authorazidar2015-04-23 11:46:47 -0700
committerazidar2015-04-23 11:46:47 -0700
commitaccb511cb37ce595d28bb3feefe5be79bc6ae303 (patch)
tree1a1d2212c2d04b773238fb5b0c7eb9368df83b9b /test/passes/infer-widths
parentaa5eb968b837a4c35c5361b5f567411766c52184 (diff)
parent7f8758420a2a46d7cf19441e9fbd1dba82cae612 (diff)
Merge branch 'master' into parser
Diffstat (limited to 'test/passes/infer-widths')
-rw-r--r--test/passes/infer-widths/gcd.fir2
-rw-r--r--test/passes/infer-widths/simple.fir10
2 files changed, 10 insertions, 2 deletions
diff --git a/test/passes/infer-widths/gcd.fir b/test/passes/infer-widths/gcd.fir
index a550326b..864852fb 100644
--- a/test/passes/infer-widths/gcd.fir
+++ b/test/passes/infer-widths/gcd.fir
@@ -1,4 +1,4 @@
-; RUN: firrtl -i %s -o %s.flo -x abcdefghijkl -p cT | tee %s.out | FileCheck %s
+; RUN: firrtl -i %s -o %s.flo -x abcdefghijkl -p cTd | tee %s.out | FileCheck %s
;CHECK: Infer Widths
circuit top :
diff --git a/test/passes/infer-widths/simple.fir b/test/passes/infer-widths/simple.fir
index 432030d5..50eb5452 100644
--- a/test/passes/infer-widths/simple.fir
+++ b/test/passes/infer-widths/simple.fir
@@ -1,4 +1,4 @@
-; RUN: firrtl -i %s -o %s.flo -x abcdefghijkl -p cT | tee %s.out | FileCheck %s
+; RUN: firrtl -i %s -o %s.flo -x abcdefghijkl -p cTwd | tee %s.out | FileCheck %s
;CHECK: Infer Widths
circuit top :
@@ -6,6 +6,14 @@ circuit top :
wire e : UInt(30)
reg y : UInt
y := e
+
+ wire a : UInt(20)
+ wire b : UInt(10)
+ wire c : UInt
+ wire z : UInt
+
+ z := mux(c,Pad(a,?),Pad(b,?))
+
; CHECK: Finished Infer Widths