aboutsummaryrefslogtreecommitdiff
path: root/test/passes/jacktest/Counter.fir
diff options
context:
space:
mode:
authorazidar2015-05-19 20:16:53 -0700
committerazidar2015-05-19 20:16:53 -0700
commit0faab2b1efb266bc8000b11a474438401ff5af83 (patch)
tree495f90290e9602535fc8e57f04dc620b0c6864ed /test/passes/jacktest/Counter.fir
parent8feaa0a5ae0479b4063771202d7ad0e93d39c247 (diff)
Updated tests
Diffstat (limited to 'test/passes/jacktest/Counter.fir')
-rw-r--r--test/passes/jacktest/Counter.fir17
1 files changed, 8 insertions, 9 deletions
diff --git a/test/passes/jacktest/Counter.fir b/test/passes/jacktest/Counter.fir
index d62ba9fc..48af58b8 100644
--- a/test/passes/jacktest/Counter.fir
+++ b/test/passes/jacktest/Counter.fir
@@ -1,6 +1,5 @@
-; RUN: firrtl -i %s -o %s.flo -X flo -p cTwd | tee %s.out | FileCheck %s
-; CHECK: Done!
-
+; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s
+;CHECK: Done!
circuit Counter :
module Counter :
input inc : UInt<1>
@@ -8,10 +7,10 @@ circuit Counter :
input amt : UInt<4>
reg T_13 : UInt<8>
- on-reset T_13 := Pad(UInt<8>(0),?)
+ on-reset T_13 := UInt<8>(0)
when inc :
- node T_14 = add-wrap(Pad(T_13,?), Pad(amt,?))
- node T_15 = gt(Pad(T_14,?), Pad(UInt<8>(255),?))
- node T_16 = mux(Pad(T_15,?), Pad(UInt<1>(0),?), Pad(T_14,?))
- T_13 := Pad(T_16,?)
- tot := Pad(T_13,?)
+ node T_14 = add-wrap(T_13, amt)
+ node T_15 = gt(T_14, UInt<8>(255))
+ node T_16 = mux(T_15, UInt<1>(0), T_14)
+ T_13 := T_16
+ tot := T_13