aboutsummaryrefslogtreecommitdiff
path: root/test/chisel3/Stack.fir
diff options
context:
space:
mode:
authorazidar2015-08-24 10:58:49 -0700
committerazidar2015-08-24 10:58:49 -0700
commit50cf7a4823d69967dcb2b10cdef892b0ab5f2184 (patch)
treeb8a4d9fc9b2063703a5f37fec538f7a220cc7681 /test/chisel3/Stack.fir
parent02a7fb53fc424346a1693f23661a1b1a4a867c4f (diff)
Removed old chisel3 tests that all failed for syntax reasons. Tests should now be small examples, categorized by either passes, errors, or features.
Diffstat (limited to 'test/chisel3/Stack.fir')
-rw-r--r--test/chisel3/Stack.fir36
1 files changed, 0 insertions, 36 deletions
diff --git a/test/chisel3/Stack.fir b/test/chisel3/Stack.fir
deleted file mode 100644
index 52c9b437..00000000
--- a/test/chisel3/Stack.fir
+++ /dev/null
@@ -1,36 +0,0 @@
-; RUN: firrtl -i %s -o %s.v -X verilog -p c | tee %s.out | FileCheck %s
-;CHECK: Done!
-
-circuit Stack :
- module Stack :
- input push : UInt<1>
- input pop : UInt<1>
- input en : UInt<1>
- output dataOut : UInt<32>
- input dataIn : UInt<32>
-
- cmem stack_mem : UInt<32>[16]
- reg sp : UInt<5>
- on-reset sp := UInt<5>(0)
- reg out : UInt<32>
- on-reset out := UInt<32>(0)
- when en :
- node T_30 = lt(sp, UInt<5>(16))
- node T_31 = bit-and(push, T_30)
- when T_31 :
- infer accessor T_32 = stack_mem[sp]
- T_32 := dataIn
- node T_33 = add-wrap(sp, UInt<1>(1))
- sp := T_33
- else :
- node T_34 = gt(sp, UInt<1>(0))
- node T_35 = bit-and(pop, T_34)
- when T_35 :
- node T_36 = sub-wrap(sp, UInt<1>(1))
- sp := T_36
- node T_37 = gt(sp, UInt<1>(0))
- when T_37 :
- node T_38 = sub-wrap(sp, UInt<1>(1))
- infer accessor T_39 = stack_mem[T_38]
- out := T_39
- dataOut := out