aboutsummaryrefslogtreecommitdiff
path: root/test/passes/infer-widths
diff options
context:
space:
mode:
authorjackbackrack2015-04-22 21:14:38 -0700
committerjackbackrack2015-04-22 21:14:38 -0700
commita60a8951ff54342ee7d57484a535b05daebd3341 (patch)
treecd70427839cd42c8b7b7e650e399e8e8880e0ff0 /test/passes/infer-widths
parentd1bc615be8e214713d5b13a767b2a8abbeeb173a (diff)
parenta4f7aa2b81a021f21a49bd4059d051bc0f949880 (diff)
merge
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